Package org.apache.sshd.server.shell
Class TtyFilterInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.sshd.server.shell.TtyFilterInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Handles the input while taking into account the
PtyMode
s for handling CR / LF-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsConstructorDescriptionTtyFilterInputStream
(InputStream in, Collection<PtyMode> ttyOptions) TtyFilterInputStream
(InputStream in, Map<PtyMode, ?> modes) -
Method Summary
Methods inherited from class java.io.FilterInputStream
close, mark, markSupported, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
Field Details
-
INPUT_OPTIONS
-
ttyOptions
-
buffer
-
lastChar
private int lastChar
-
-
Constructor Details
-
TtyFilterInputStream
-
TtyFilterInputStream
-
-
Method Details
-
write
public void write(int c) -
write
public void write(byte[] buf, int off, int len) -
available
- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
handleCR
- Throws:
IOException
-
handleLF
- Throws:
IOException
-
insertCharacter
-
readRawInput
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-