Class TelnetIO

java.lang.Object
org.jline.builtins.telnet.TelnetIO

public class TelnetIO extends Object
Class that represents the TelnetIO implementation. It contains an inner IACHandler class to handle the telnet protocol level communication.

Although supposed to work full-duplex, we only process the telnet protocol layer communication in case of reading requests from the higher levels. This is the only way to meet the one thread per connection requirement.

The output is done via byte-oriented streams, definately suitable for the telnet protocol. The format of the output is UTF-8 (Unicode), which is a standard and supported by any telnet client, including the ones included in Microsoft OS's.

Notes:
  • The underlying output is buffered, to ensure that all bytes written are send, the flush() method has to be called.
  • This low-level routines ensure nice multithreading behaviour on I/O. Neither large outputs, nor input sequences excuted by the connection thread can hog the system.
Version:
2.0 (16/07/2006)
Author:
Dieter Wimberger