sdsu.io
Class ChunkEnumerator

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

Deprecated. Use ChunkReader

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

Deprecated use ChunkReader.

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

Constructor Summary
ChunkEnumerator(java.io.Reader in, java.lang.String separator)
          Deprecated. Create a ChunkEnumerator object with a Reader as an input and the given separator.
ChunkEnumerator(java.lang.String input, java.lang.String separator)
          Deprecated. Create a ChunkEnumerator object with a String as an input and the given separator.
 
Method Summary
static ChunkEnumerator fromFile(java.lang.String fileName, java.lang.String separator)
          Deprecated. Create a ChunkEnumerator object with a file as an input and the given separator.
 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
 

Constructor Detail

ChunkEnumerator

public ChunkEnumerator(java.io.Reader in,
                       java.lang.String separator)
Deprecated. 
Create a ChunkEnumerator object with a Reader as an input and the given separator. This class does not buffer the reader for you.

ChunkEnumerator

public ChunkEnumerator(java.lang.String input,
                       java.lang.String separator)
Deprecated. 
Create a ChunkEnumerator object with a String as an input and the given separator.
Method Detail

fromFile

public static ChunkEnumerator fromFile(java.lang.String fileName,
                                       java.lang.String separator)
                                throws java.io.FileNotFoundException
Deprecated. 
Create a ChunkEnumerator 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. 

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.