Package jexer.net
Class TelnetSocket
- java.lang.Object
-
- java.net.Socket
-
- jexer.net.TelnetSocket
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class TelnetSocket extends java.net.SocketThis 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.InputStreamgetInputStream()Returns an input stream for this socket.java.io.OutputStreamgetOutputStream()Returns an output stream for this socket.booleanisAscii()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
-
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOExceptionReturns an input stream for this socket.- Overrides:
getInputStreamin classjava.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.IOExceptionReturns an output stream for this socket.- Overrides:
getOutputStreamin classjava.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
-
-