|
KindFTP © 1998-2001 Joseph Kiniry © 2001 KindSoftware All Rights Reserved |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kindftp.CommandReader
A line-oriented reader with pushback.
| Constructor Summary | |
CommandReader(java.io.Reader in)
Create a new command reader. |
|
CommandReader(java.io.Reader in,
int size)
Create a new command reader with a buffer of the given size. |
|
| Method Summary | |
void |
close()
Close the stream. |
java.lang.String |
readLine()
Read a line of text. |
boolean |
ready()
Tell whether this stream is ready to be read. |
void |
unReadLine(java.lang.String line)
Unread (pushback) a line of text. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public CommandReader(java.io.Reader in)
Create a new command reader.
in - The reader from which characters will be read.in != null
public CommandReader(java.io.Reader in,
int size)
Create a new command reader with a buffer of the given size.
in - The reader from which characters will be read.size - The size of the command reader.in != null| Method Detail |
public void close()
throws java.io.IOException
Close the stream.
public boolean ready()
throws java.io.IOException
Tell whether this stream is ready to be read.
public java.lang.String readLine()
throws java.io.IOException
Read a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed.
public void unReadLine(java.lang.String line)
throws java.io.IOException
Unread (pushback) a line of text. The line should not be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed.
a - String containing the contents of the line, not including
any line-termination characters, to be unread.
|
KindFTP © 1998-2001 Joseph Kiniry © 2001 KindSoftware All Rights Reserved |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||