jline
Class UnixTerminal.ReplayPrefixOneCharInputStream
InputStream
jline.UnixTerminal.ReplayPrefixOneCharInputStream
- UnixTerminal
(package private) static class UnixTerminal.ReplayPrefixOneCharInputStream
extends InputStream
This is awkward and inefficient, but probably the minimal way to add
UTF-8 support to JLine
int | available() - InputStreamReader is greedy and will try to read bytes in advance.
|
int | read()
|
void | setInput(int recorded, InputStream wrapped)
|
void | setInputUTF8(int recorded, InputStream wrapped)
|
byteLength
(package private) int byteLength
byteRead
(package private) int byteRead
encoding
(package private) final String encoding
firstByte
(package private) byte firstByte
wrappedStream
(package private) InputStream wrappedStream
ReplayPrefixOneCharInputStream
public ReplayPrefixOneCharInputStream(String encoding)
available
public int available()
InputStreamReader is greedy and will try to read bytes in advance. We
do NOT want this to happen since we use a temporary/"losing bytes"
InputStreamReader above, that's why we hide the real
wrappedStream.available() here.
read
public int read()
throws IOException
setInput
public void setInput(int recorded,
InputStream wrapped)
throws IOException
setInputUTF8
public void setInputUTF8(int recorded,
InputStream wrapped)
throws IOException