public class LineReader
extends java.io.FilterInputStream
Constructor and Description |
---|
LineReader(java.io.InputStream in)
Constructs a new LineReader instance.
|
LineReader(java.io.InputStream in,
char[] delim)
Constructs a new LineReader instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasDelimiter()
Checks if last line reading was terminated with delimiter.
|
java.lang.String |
readLine()
Reads line from InputStream
|
java.lang.String |
readLine(java.lang.String encoding)
Reads line from InputStream.
|
public LineReader(java.io.InputStream in)
in
- the InputStream this LineReader is to reading from.public LineReader(java.io.InputStream in, char[] delim)
in
- the InputStream this LineReader is to reading from.delim
- a char[] representing the line terminatorpublic boolean hasDelimiter()
public java.lang.String readLine(java.lang.String encoding) throws java.io.IOException
encoding
- the character encoding to use when reading converting data to a Stringjava.io.IOException
- if an I/O related error occurspublic java.lang.String readLine() throws java.io.IOException
java.io.IOException
- if an I/O related error occursCopyright © JSCAPE LLC. 1999-2021. All Rights Reserved