kawa

Class TelnetInputStream


public class TelnetInputStream
extends 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

Constructor Summary

TelnetInputStream(InputStream in, Telnet conn)

Method Summary

int
read()
int
read(byte[] b, int offset, int length)

Field Details

buf

protected byte[] buf

Constructor Details

TelnetInputStream

public TelnetInputStream(InputStream in,
                         Telnet conn)
            throws IOException

Method Details

read

public int read()
            throws IOException

read

public int read(byte[] b,
                int offset,
                int length)
            throws IOException