public class UnsyncStringReader
extends java.io.Reader
See https://issues.liferay.com/browse/LPS-6648.
| Modifier and Type | Field and Description |
|---|---|
protected int |
index |
protected int |
markIndex |
protected java.lang.String |
string |
protected int |
stringLength |
| Constructor and Description |
|---|
UnsyncStringReader(java.lang.String string) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] chars) |
int |
read(char[] chars,
int offset,
int length) |
int |
read(java.nio.CharBuffer charBuffer) |
boolean |
ready() |
void |
reset() |
long |
skip(long skip) |
protected int index
protected int markIndex
protected java.lang.String string
protected int stringLength
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerpublic void mark(int readAheadLimit)
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 int read(java.nio.CharBuffer charBuffer)
throws java.io.IOException
read in interface java.lang.Readableread in class java.io.Readerjava.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)
skip in class java.io.Reader