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(InputStream 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
that represents the
input file to be attached to this class.public NameFinderCensus90NameStream(InputStream in, 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 IOException
ObjectStream
read
in interface ObjectStream<StringList>
IOException
public void reset() throws IOException, UnsupportedOperationException
ObjectStream
reset
in interface ObjectStream<StringList>
IOException
UnsupportedOperationException
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 ObjectStream<StringList>
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.