public class TtyFilterInputStream
extends java.io.FilterInputStream
PtyMode
s for
handling CR / LFModifier and Type | Field and Description |
---|---|
private Buffer |
buffer |
static java.util.Set<PtyMode> |
INPUT_OPTIONS |
private int |
lastChar |
private java.util.Set<PtyMode> |
ttyOptions |
Constructor and Description |
---|
TtyFilterInputStream(java.io.InputStream in,
java.util.Collection<PtyMode> ttyOptions) |
TtyFilterInputStream(java.io.InputStream in,
java.util.Map<PtyMode,?> modes) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
protected int |
handleCR() |
protected int |
handleLF() |
protected Buffer |
insertCharacter(Buffer org,
int c) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
protected int |
readRawInput() |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int c) |
public static final java.util.Set<PtyMode> INPUT_OPTIONS
private final java.util.Set<PtyMode> ttyOptions
private Buffer buffer
private int lastChar
public TtyFilterInputStream(java.io.InputStream in, java.util.Map<PtyMode,?> modes)
public TtyFilterInputStream(java.io.InputStream in, java.util.Collection<PtyMode> ttyOptions)
public void write(int c)
public void write(byte[] buf, int off, int len)
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
protected int handleCR() throws java.io.IOException
java.io.IOException
protected int handleLF() throws java.io.IOException
java.io.IOException
protected int readRawInput() throws java.io.IOException
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException