public class PlainTextByLineStream extends Object implements ObjectStream<String>
String
object.Constructor and Description |
---|
PlainTextByLineStream(FileChannel channel,
Charset encoding)
Deprecated.
Use
PlainTextByLineStream(InputStreamFactory, Charset) instead. |
PlainTextByLineStream(FileChannel channel,
String charsetName)
Deprecated.
Use
PlainTextByLineStream(InputStreamFactory, String) instead. |
PlainTextByLineStream(InputStream in,
Charset charset)
Deprecated.
Use
PlainTextByLineStream(InputStreamFactory, Charset) instead. |
PlainTextByLineStream(InputStreamFactory inputStreamFactory,
Charset charset) |
PlainTextByLineStream(InputStreamFactory inputStreamFactory,
String charsetName) |
PlainTextByLineStream(InputStream in,
String charsetName)
Deprecated.
Use
PlainTextByLineStream(InputStreamFactory, String) instead. |
PlainTextByLineStream(Reader in)
Deprecated.
Use
PlainTextByLineStream(InputStreamFactory, Charset) instead. |
public PlainTextByLineStream(InputStreamFactory inputStreamFactory, String charsetName) throws IOException
IOException
public PlainTextByLineStream(InputStreamFactory inputStreamFactory, Charset charset) throws IOException
IOException
public PlainTextByLineStream(Reader in)
PlainTextByLineStream(InputStreamFactory, Charset)
instead.in
- public PlainTextByLineStream(InputStream in, String charsetName) throws UnsupportedEncodingException
PlainTextByLineStream(InputStreamFactory, String)
instead.UnsupportedEncodingException
public PlainTextByLineStream(InputStream in, Charset charset)
PlainTextByLineStream(InputStreamFactory, Charset)
instead.public PlainTextByLineStream(FileChannel channel, String charsetName)
PlainTextByLineStream(InputStreamFactory, String)
instead.public PlainTextByLineStream(FileChannel channel, Charset encoding)
PlainTextByLineStream(InputStreamFactory, Charset)
instead.public String read() throws IOException
ObjectStream
read
in interface ObjectStream<String>
IOException
- if there is an error during readingpublic void reset() throws IOException
ObjectStream
reset
in interface ObjectStream<String>
IOException
- if there is an error during reseting the streampublic 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<String>
IOException
- if there is an error during closing the streamCopyright © 2015 The Apache Software Foundation. All rights reserved.