All Packages Class Hierarchy This Package Previous Next Index
Class sdsu.io.StringizedDataEnumerator
java.lang.Object
|
+----sdsu.io.StringizedDataEnumerator
- public class StringizedDataEnumerator
- extends Object
- implements Enumeration
Note: StringizedDataEnumerator is deprecated.
Use StringizableReader
Deprecated use StringizableReader.
- Version:
- 0.5 31 August 1997
- Author:
- Roger Whitney (whitney@cs.sdsu.edu)
- See Also:
- StringizableReader
-
DEFAULT_COMMENT_CHAR
- Default character used at begining of a line to indicate
a comment, which ends at the end of line.
-
DEFAULT_DATA_BLOCK_SEPARATOR
- Default string that separates data block.
-
DEFAULT_METADATA_CHAR
- Default character that indicates
a line of metaData when it is the second character of a
comment line.
-
META_COMMENT_CHAR_KEY
- Name used in file meta data line to indicate the comment character.
-
META_DATA_CHAR_KEY
- Name used in file meta data line to indicate the meta data character.
-
META_SEPARATOR_KEY
- Name used in file meta data line to indicate the data separator string.
-
StringizedDataEnumerator(Reader)
- Create a StringizedDataEnumerator object with a Reader as an input and the
given separator.
-
StringizedDataEnumerator(String)
- Create a StringizedDataEnumerator object with a String as an input and the
given separator.
-
fromFile(String)
- Create a StringizedDataEnumerator object with a file as an input and the
given separator.
-
getDataComment()
- Return the comment for the current data object
-
getDataLabel()
- Returns the label for the current data object.
-
getMetaDataComment()
- Return the comment for the metaData of the current data object
-
hasMoreElements()
- Returns true if there are more blocks of data in the input.
-
nextElement()
- Returns the next block of data.
-
setSeparator(String)
-
META_SEPARATOR_KEY
public static final String META_SEPARATOR_KEY
- Name used in file meta data line to indicate the data separator string.
META_COMMENT_CHAR_KEY
public static final String META_COMMENT_CHAR_KEY
- Name used in file meta data line to indicate the comment character.
META_DATA_CHAR_KEY
public static final String META_DATA_CHAR_KEY
- Name used in file meta data line to indicate the meta data character.
DEFAULT_COMMENT_CHAR
public static final char DEFAULT_COMMENT_CHAR
- Default character used at begining of a line to indicate
a comment, which ends at the end of line.
DEFAULT_METADATA_CHAR
public static final char DEFAULT_METADATA_CHAR
- Default character that indicates
a line of metaData when it is the second character of a
comment line.
DEFAULT_DATA_BLOCK_SEPARATOR
public static final String DEFAULT_DATA_BLOCK_SEPARATOR
- Default string that separates data block.
StringizedDataEnumerator
public StringizedDataEnumerator(Reader in) throws IOException
- Create a StringizedDataEnumerator object with a Reader as an input and the
given separator. This class does not buffer the reader for you.
StringizedDataEnumerator
public StringizedDataEnumerator(String input) throws IOException
- Create a StringizedDataEnumerator object with a String as an input and the
given separator.
fromFile
public static StringizedDataEnumerator fromFile(String fileName) throws FileNotFoundException, IOException
- Create a StringizedDataEnumerator object with a file as an input and the
given separator. File IO will be buffered for you.
- Throws: FileNotFoundException
- thrown if fileName is not valid file name.
setSeparator
public void setSeparator(String newSeparator)
getMetaDataComment
public String getMetaDataComment()
- Return the comment for the metaData of the current data object
getDataComment
public String getDataComment()
- Return the comment for the current data object
getDataLabel
public String getDataLabel()
- Returns the label for the current data object.
Returns empty string, not null, if no label exists
hasMoreElements
public boolean hasMoreElements()
- Returns true if there are more blocks of data in the input.
nextElement
public Object nextElement()
- Returns the next block of data.
- Throws: NoSuchElementException
- if there are no blocks of data left.
All Packages Class Hierarchy This Package Previous Next Index