kawa
Class TelnetOutputStream
public class TelnetOutputStream
extends FilterOutputStream
An input stream tha handles the telnet protocol.
Basically, the byte value IAC is doubled.
In addition, various utility methods are provided.
TelnetOutputStream
public TelnetOutputStream(OutputStream out)
write
public void write(byte[] b)
throws IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
write
public void write(int value)
throws IOException
writeCommand
public void writeCommand(int code)
throws IOException
writeCommand
public final void writeCommand(int code,
int option)
throws IOException
writeDo
public final void writeDo(int option)
throws IOException
writeDont
public final void writeDont(int option)
throws IOException
writeSubCommand
public final void writeSubCommand(int option,
byte[] command)
throws IOException
writeWill
public final void writeWill(int option)
throws IOException
writeWont
public final void writeWont(int option)
throws IOException