|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
jhomenet.shell.server.SystemInputStream
jhomenet.shell.server.telnet.TelnetInputStream
public class TelnetInputStream
This is an input stream to be used by a TelnetSession.
| Field Summary |
|---|
| Fields inherited from class jhomenet.shell.server.SystemInputStream |
|---|
ASCII_BS, ASCII_DEL, ASCII_SPACE, buffer, ECHO, endPos, ERASE, fileInName, out, rawMode, root, session, startPos |
| Constructor Summary | |
|---|---|
TelnetInputStream(java.io.InputStream in,
java.io.PrintStream out)
Initialize the stream. |
|
| Method Summary | |
|---|---|
int |
rawAvailable()
This method should be overridden by subclassing InputStreams. |
protected int |
rawRead()
Read the next character from the stream. |
| Methods inherited from class jhomenet.shell.server.SystemInputStream |
|---|
available, errorOccurred, getEcho, getRootStream, increaseBuffer, rawRead, read, read, readLine, setEcho, setEchoStream, setRawMode, setRootStream, setSession |
| Methods inherited from class java.io.InputStream |
|---|
close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TelnetInputStream(java.io.InputStream in,
java.io.PrintStream out)
in - Underlying InputStream to use.out - PrintStream to echo characters| Method Detail |
|---|
public int rawAvailable()
throws java.io.IOException
SystemInputStreamInputStreams.
It returns the amount available from the underlying root stream.
This is not the amount available if the SystemInputStream
is not in raw mode.
rawAvailable in class SystemInputStreamjava.io.IOException - if an error occurs in the underlying stream.SystemInputStream.setRawMode(boolean),
SystemInputStream.rawRead(),
SystemInputStream.rawRead(byte[],int,int)
protected int rawRead()
throws java.io.IOException
rawRead in class SystemInputStream-1 if the end of the stream has been
reached.
java.io.IOException - if an IO problem occurs during
the read.SystemInputStream.rawRead(byte[],int,int),
SystemInputStream.rawAvailable(),
SystemInputStream.setRawMode(boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||