public class NameFinderCensus90NameStream extends java.lang.Object implements ObjectStream<StringList>
SMITH 1.006 1.006 1
Note: Do not use this class, internal use only!
| Constructor and Description |
|---|
NameFinderCensus90NameStream(java.io.InputStream in,
java.nio.charset.Charset encoding)
This constructor takes an
InputStream and a Charset
and opens an associated stream object with the specified encoding specified. |
NameFinderCensus90NameStream(ObjectStream<java.lang.String> lineStream)
This constructor takes an ObjectStream and initializes the class to handle
the stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the
ObjectStream and releases all allocated
resources. |
StringList |
read()
Returns the next object.
|
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence
will be repeated exactly.
|
public NameFinderCensus90NameStream(ObjectStream<java.lang.String> lineStream)
lineStream - an ObjectSteam<String> that represents the
input file to be attached to this class.public NameFinderCensus90NameStream(java.io.InputStream in,
java.nio.charset.Charset encoding)
InputStream and a Charset
and opens an associated stream object with the specified encoding specified.in - an InputStream for the input file.encoding - the Charset to apply to the input stream.public StringList read() throws java.io.IOException
ObjectStreamread in interface ObjectStream<StringList>java.io.IOException - if there is an error during readingpublic void reset()
throws java.io.IOException,
java.lang.UnsupportedOperationException
ObjectStreamreset in interface ObjectStream<StringList>java.io.IOException - if there is an error during reseting the streamjava.lang.UnsupportedOperationExceptionpublic void close()
throws java.io.IOException
ObjectStreamObjectStream and releases all allocated
resources. After close was called its not allowed to call
read or reset.close in interface java.lang.AutoCloseableclose in interface ObjectStream<StringList>java.io.IOException - if there is an error during closing the streamCopyright © 2010 - 2020 Adobe. All Rights Reserved