|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttribble.io.LineInputStream
public class LineInputStream
Generic text line input stream interface.
This is a default implementation of the LineInputStreamI interface.
This class is similar to the standard java.io.LineNumberReader class.
CharInputStreamI,
TextLine| Field Summary | |
|---|---|
protected java.io.BufferedReader |
m_in
Input stream. |
protected int |
m_lineNo
Current input line number. |
(package private) static java.lang.String |
REV
Revision information. |
| Constructor Summary | |
|---|---|
protected |
LineInputStream()
Default constructor. |
|
LineInputStream(java.io.Reader in)
Constructor. |
| Method Summary | |
|---|---|
void |
close()
Closes the input stream. |
protected void |
finalize()
Finalization. |
TextLineI |
readLine()
Reads the next text line from the input stream. |
protected void |
setInput(java.io.Reader in)
Establishes the input stream from which to read text lines. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final java.lang.String REV
protected java.io.BufferedReader m_in
protected int m_lineNo
| Constructor Detail |
|---|
public LineInputStream(java.io.Reader in)
in - The input stream from which to read text lines.
It is recommended that this be of type java.io.BufferedReader.protected LineInputStream()
| Method Detail |
|---|
public void close()
close in interface LineInputStreamI
public TextLineI readLine()
throws java.io.IOException
readLine in interface LineInputStreamIjava.io.IOException - Thrown if an I/O (read) error occurs.
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwableprotected void setInput(java.io.Reader in)
in - The input stream from which to read text lines.
It is recommended that this be of type java.io.BufferedReader.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||