Package jexer.net

Class TelnetSocket

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class TelnetSocket
    extends java.net.Socket
    This class provides a Socket that performs the telnet protocol to both establish an 8-bit clean no echo channel and expose window resize events to the Jexer ECMA48 backend.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getInputStream()
      Returns an input stream for this socket.
      java.io.OutputStream getOutputStream()
      Returns an output stream for this socket.
      boolean isAscii()
      See if telnet server/client is in ASCII mode.
      • Methods inherited from class java.net.Socket

        bind, close, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Returns an input stream for this socket.
        Overrides:
        getInputStream in class java.net.Socket
        Returns:
        the input stream
        Throws:
        java.io.IOException - if an I/O error occurs
      • getOutputStream

        public java.io.OutputStream getOutputStream()
                                             throws java.io.IOException
        Returns an output stream for this socket.
        Overrides:
        getOutputStream in class java.net.Socket
        Returns:
        the output stream
        Throws:
        java.io.IOException - if an I/O error occurs
      • isAscii

        public boolean isAscii()
        See if telnet server/client is in ASCII mode.
        Returns:
        if true, this connection is in ASCII mode