public class TtyFilterInputStream
extends java.io.FilterInputStream
PtyModes for
handling CR / LF| Modifier 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.FilterInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionprotected int handleCR()
throws java.io.IOException
java.io.IOExceptionprotected int handleLF()
throws java.io.IOException
java.io.IOExceptionprotected int readRawInput()
throws java.io.IOException
java.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException