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 Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic void mark(int markLimit)
throws IOException
mark in class ReaderIOExceptionpublic boolean markSupported()
markSupported in class Readerpublic int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] chars)
throws IOException
read in class ReaderIOExceptionpublic int read(char[] chars,
int offset,
int length)
throws IOException
read in class ReaderIOExceptionpublic String readLine()
throws IOException
IOExceptionpublic boolean ready()
throws IOException
ready in class ReaderIOExceptionpublic void reset()
throws IOException
reset in class ReaderIOExceptionpublic long skip(long skip)
throws IOException
skip in class ReaderIOExceptionprotected void fillInBuffer()
throws IOException
IOExceptionprotected int readOnce(char[] chars,
int offset,
int length)
throws IOException
IOException