com.liferay.portal.kernel.io.unsync
Class UnsyncBufferedReader
java.lang.Object
java.io.Reader
com.liferay.portal.kernel.io.unsync.UnsyncBufferedReader
- All Implemented Interfaces:
- Closeable, AutoCloseable, Readable
public class UnsyncBufferedReader
- extends Reader
See https://issues.liferay.com/browse/LPS-6648.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected char[] buffer
firstInvalidIndex
protected int firstInvalidIndex
index
protected int index
markLimitIndex
protected int markLimitIndex
reader
protected Reader reader
UnsyncBufferedReader
public UnsyncBufferedReader(Reader reader)
UnsyncBufferedReader
public UnsyncBufferedReader(Reader reader,
int size)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface AutoCloseable- Specified by:
close in class Reader
- Throws:
IOException
mark
public void mark(int markLimit)
throws IOException
- Overrides:
mark in class Reader
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported in class Reader
read
public int read()
throws IOException
- Overrides:
read in class Reader
- Throws:
IOException
read
public int read(char[] chars)
throws IOException
- Overrides:
read in class Reader
- Throws:
IOException
read
public int read(char[] chars,
int offset,
int length)
throws IOException
- Specified by:
read in class Reader
- Throws:
IOException
readLine
public String readLine()
throws IOException
- Throws:
IOException
ready
public boolean ready()
throws IOException
- Overrides:
ready in class Reader
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset in class Reader
- Throws:
IOException
skip
public long skip(long skip)
throws IOException
- Overrides:
skip in class Reader
- Throws:
IOException
fillInBuffer
protected void fillInBuffer()
throws IOException
- Throws:
IOException
readOnce
protected int readOnce(char[] chars,
int offset,
int length)
throws IOException
- Throws:
IOException