sdsu.io
Class StringizedDataEnumerator

java.lang.Object
  |
  +--sdsu.io.StringizedDataEnumerator

Deprecated. Use StringizableReader

public class StringizedDataEnumerator
extends java.lang.Object
implements java.util.Enumeration

Deprecated use StringizableReader.

Version:
0.5 31 August 1997
Author:
Roger Whitney (whitney@cs.sdsu.edu)
See Also:
StringizableReader

Field Summary
static char DEFAULT_COMMENT_CHAR
          Deprecated. Default character used at begining of a line to indicate a comment, which ends at the end of line.
static java.lang.String DEFAULT_DATA_BLOCK_SEPARATOR
          Deprecated. Default string that separates data block.
static char DEFAULT_METADATA_CHAR
          Deprecated. Default character that indicates a line of metaData when it is the second character of a comment line.
static java.lang.String META_COMMENT_CHAR_KEY
          Deprecated. Name used in file meta data line to indicate the comment character.
static java.lang.String META_DATA_CHAR_KEY
          Deprecated. Name used in file meta data line to indicate the meta data character.
static java.lang.String META_SEPARATOR_KEY
          Deprecated. Name used in file meta data line to indicate the data separator string.
 
Constructor Summary
StringizedDataEnumerator(java.io.Reader in)
          Deprecated. Create a StringizedDataEnumerator object with a Reader as an input and the given separator.
StringizedDataEnumerator(java.lang.String input)
          Deprecated. Create a StringizedDataEnumerator object with a String as an input and the given separator.
 
Method Summary
static StringizedDataEnumerator fromFile(java.lang.String fileName)
          Deprecated. Create a StringizedDataEnumerator object with a file as an input and the given separator.
 java.lang.String getDataComment()
          Deprecated. Return the comment for the current data object
 java.lang.String getDataLabel()
          Deprecated. Returns the label for the current data object.
 java.lang.String getMetaDataComment()
          Deprecated. Return the comment for the metaData of the current data object
 boolean hasMoreElements()
          Deprecated. Returns true if there are more blocks of data in the input.
 java.lang.Object nextElement()
          Deprecated. Returns the next block of data.
 void setSeparator(java.lang.String newSeparator)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_SEPARATOR_KEY

public static final java.lang.String META_SEPARATOR_KEY
Deprecated. 
Name used in file meta data line to indicate the data separator string.

META_COMMENT_CHAR_KEY

public static final java.lang.String META_COMMENT_CHAR_KEY
Deprecated. 
Name used in file meta data line to indicate the comment character.

META_DATA_CHAR_KEY

public static final java.lang.String META_DATA_CHAR_KEY
Deprecated. 
Name used in file meta data line to indicate the meta data character.

DEFAULT_COMMENT_CHAR

public static final char DEFAULT_COMMENT_CHAR
Deprecated. 
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
Deprecated. 
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 java.lang.String DEFAULT_DATA_BLOCK_SEPARATOR
Deprecated. 
Default string that separates data block.
Constructor Detail

StringizedDataEnumerator

public StringizedDataEnumerator(java.io.Reader in)
                         throws java.io.IOException
Deprecated. 
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(java.lang.String input)
                         throws java.io.IOException
Deprecated. 
Create a StringizedDataEnumerator object with a String as an input and the given separator.
Method Detail

fromFile

public static StringizedDataEnumerator fromFile(java.lang.String fileName)
                                         throws java.io.FileNotFoundException,
                                                java.io.IOException
Deprecated. 
Create a StringizedDataEnumerator object with a file as an input and the given separator. File IO will be buffered for you.
Throws:
java.io.FileNotFoundException - thrown if fileName is not valid file name.

setSeparator

public void setSeparator(java.lang.String newSeparator)
Deprecated. 

getMetaDataComment

public java.lang.String getMetaDataComment()
Deprecated. 
Return the comment for the metaData of the current data object

getDataComment

public java.lang.String getDataComment()
Deprecated. 
Return the comment for the current data object

getDataLabel

public java.lang.String getDataLabel()
Deprecated. 
Returns the label for the current data object. Returns empty string, not null, if no label exists

hasMoreElements

public boolean hasMoreElements()
Deprecated. 
Returns true if there are more blocks of data in the input.
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Deprecated. 
Returns the next block of data.
Specified by:
nextElement in interface java.util.Enumeration
Throws:
java.util.NoSuchElementException - if there are no blocks of data left.