public class UnsyncBufferedReader
extends Reader
See https://issues.liferay.com/browse/LPS-6648.
Modifier and Type | Field and Description |
---|---|
protected char[] |
buffer |
protected int |
firstInvalidIndex |
protected int |
index |
protected int |
markLimitIndex |
protected Reader |
reader |
Constructor and Description |
---|
UnsyncBufferedReader(Reader reader) |
UnsyncBufferedReader(Reader reader,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
fillInBuffer() |
void |
mark(int markLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] chars) |
int |
read(char[] chars,
int offset,
int length) |
String |
readLine() |
protected int |
readOnce(char[] chars,
int offset,
int length) |
boolean |
ready() |
void |
reset() |
long |
skip(long skip) |
protected char[] buffer
protected int firstInvalidIndex
protected int index
protected int markLimitIndex
protected Reader reader
public UnsyncBufferedReader(Reader reader)
public UnsyncBufferedReader(Reader reader, int size)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public void mark(int markLimit) throws IOException
mark
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] chars) throws IOException
read
in class Reader
IOException
public int read(char[] chars, int offset, int length) throws IOException
read
in class Reader
IOException
public String readLine() throws IOException
IOException
public boolean ready() throws IOException
ready
in class Reader
IOException
public void reset() throws IOException
reset
in class Reader
IOException
public long skip(long skip) throws IOException
skip
in class Reader
IOException
protected void fillInBuffer() throws IOException
IOException
protected int readOnce(char[] chars, int offset, int length) throws IOException
IOException