public class UnsyncBufferedReader
extends java.io.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 java.io.Reader |
reader |
| Constructor and Description |
|---|
UnsyncBufferedReader(java.io.Reader reader) |
UnsyncBufferedReader(java.io.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) |
java.lang.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 java.io.Reader reader
public UnsyncBufferedReader(java.io.Reader reader)
public UnsyncBufferedReader(java.io.Reader reader,
int size)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic void mark(int markLimit)
throws java.io.IOException
mark in class java.io.Readerjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.Readerpublic int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] chars)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] chars,
int offset,
int length)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic java.lang.String readLine()
throws java.io.IOException
java.io.IOExceptionpublic boolean ready()
throws java.io.IOException
ready in class java.io.Readerjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionpublic long skip(long skip)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOExceptionprotected void fillInBuffer()
throws java.io.IOException
java.io.IOExceptionprotected int readOnce(char[] chars,
int offset,
int length)
throws java.io.IOException
java.io.IOException