public class NameFinderCensus90NameStream extends Object implements ObjectStream<StringList>
SMITH 1.006 1.006 1
Note: Do not use this class, internal use only!
Constructor and Description |
---|
NameFinderCensus90NameStream(InputStreamFactory in,
Charset encoding)
This constructor takes an
InputStream and a Charset
and opens an associated stream object with the specified encoding specified. |
NameFinderCensus90NameStream(ObjectStream<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<String> lineStream)
lineStream
- an ObjectSteam<String>
that represents the
input file to be attached to this class.public NameFinderCensus90NameStream(InputStreamFactory in, Charset encoding) throws IOException
InputStream
and a Charset
and opens an associated stream object with the specified encoding specified.in
- an InputStreamFactory
for the input file.encoding
- the Charset
to apply to the input stream.IOException
public StringList read() throws IOException
ObjectStream
read
in interface ObjectStream<StringList>
IOException
- if there is an error during readingpublic void reset() throws IOException, UnsupportedOperationException
ObjectStream
reset
in interface ObjectStream<StringList>
IOException
- if there is an error during reseting the streamUnsupportedOperationException
public void close() throws IOException
ObjectStream
ObjectStream
and releases all allocated
resources. After close was called its not allowed to call
read or reset.close
in interface AutoCloseable
close
in interface ObjectStream<StringList>
IOException
- if there is an error during closing the streamCopyright © 2017 The Apache Software Foundation. All rights reserved.