kawa
Class TelnetInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
kawa.TelnetInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class TelnetInputStream
- extends java.io.FilterInputStream
An input stream that handles the telnet protocol.
It handles the special telnet sequences starting with the
"Interpret As Command".(IAC==255) byte.
Field Summary |
protected byte[] |
buf
|
Fields inherited from class java.io.FilterInputStream |
in |
Method Summary |
int |
read()
|
int |
read(byte[] b,
int offset,
int length)
|
Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buf
protected byte[] buf
TelnetInputStream
public TelnetInputStream(java.io.InputStream in,
Telnet conn)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.FilterInputStream
- Throws:
java.io.IOException
read
public int read(byte[] b,
int offset,
int length)
throws java.io.IOException
- Overrides:
read
in class java.io.FilterInputStream
- Throws:
java.io.IOException