|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
com.jscape.util.LineReader
public class LineReader
Constructor Summary | |
---|---|
LineReader(java.io.InputStream in)
Constructs a new LineReader instance. |
|
LineReader(java.io.InputStream in,
char[] delim)
Constructs a new LineReader instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.io.FilterInputStream |
---|
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 terminatorMethod Detail |
---|
public 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 String
java.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 occurs
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |