Module com.googlecode.lanterna
Class TelnetTerminal.TelnetClientIACFilterer
java.lang.Object
java.io.InputStream
com.googlecode.lanterna.terminal.ansi.TelnetTerminal.TelnetClientIACFilterer
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
TelnetTerminal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
private int
private final InputStream
private final TelnetTerminal.NegotiationState
private Socket
private final byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
private void
fillBuffer
(boolean block) private void
parseCommand
(byte[] buffer, int position, int max) private int
parseSubNegotiation
(byte[] buffer, int position, int max) private void
parseSubNegotiation
(byte option, byte[] additionalData) int
read()
int
read
(byte[] b, int off, int len) private void
setEventListener
(TelnetTerminal.TelnetClientEventListener eventListener) Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
negotiationState
-
inputStream
-
buffer
private final byte[] buffer -
workingBuffer
private final byte[] workingBuffer -
bytesInBuffer
private int bytesInBuffer -
eventListener
-
socket
-
-
Constructor Details
-
TelnetClientIACFilterer
TelnetClientIACFilterer(Socket socket) throws IOException - Throws:
IOException
-
-
Method Details
-
setEventListener
-
read
public int read()- Specified by:
read
in classInputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
fillBuffer
- Throws:
IOException
-
parseCommand
- Throws:
IOException
-
parseSubNegotiation
private int parseSubNegotiation(byte[] buffer, int position, int max) -
parseSubNegotiation
private void parseSubNegotiation(byte option, byte[] additionalData)
-