kawa
Class TelnetInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by 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
 
Constructor Summary
TelnetInputStream(java.io.InputStream in, Telnet conn)
           
 
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
 

Field Detail

buf

protected byte[] buf
Constructor Detail

TelnetInputStream

public TelnetInputStream(java.io.InputStream in,
                         Telnet conn)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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