|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LineInputStreamI
Generic text line input stream interface.
This interface is used to implement any kind of input stream that is capable
of reading a single line of text at a time. Such a stream can be used to
read the underlying source text for a lexical analyzer (lexer), such as the
LexerI interface; or such a stream could be used as the underlying
input stream for a character-based input stream, such as the
CharInputStreamI interface.
It is recommended that classes that implement this interface provide a constructor taking a java.io.Reader or java.io.InputStream argument.
class MyLineInputStream
implements tribble.io.LineInputStreamI
{
// Constructor
public MyLineInputStream(java.io.Reader in)
{ ... }
}
This interface is similar to the standard java.io.LineNumberReader class.
CharInputStreamI,
LexerI| Field Summary | |
|---|---|
static java.lang.String |
REV
Revision information. |
| Method Summary | |
|---|---|
void |
close()
Close the input stream. |
TextLineI |
readLine()
Read the next text line from the input stream. |
| Field Detail |
|---|
static final java.lang.String REV
| Method Detail |
|---|
void close()
TextLineI readLine()
throws java.io.IOException
java.io.IOException - Thrown if an I/O (read) error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||