Class UnsyncBufferedReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
See https://issues.liferay.com/browse/LPS-6648.
- Author:
- Shuyang Zhou
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected char[]
protected int
protected int
protected int
protected Reader
-
Constructor Summary
ConstructorsConstructorDescriptionUnsyncBufferedReader
(Reader reader) UnsyncBufferedReader
(Reader reader, int size) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
void
mark
(int markLimit) boolean
int
read()
int
read
(char[] chars) int
read
(char[] chars, int offset, int length) readLine()
protected int
readOnce
(char[] chars, int offset, int length) boolean
ready()
void
reset()
long
skip
(long skip) Methods inherited from class java.io.Reader
nullReader, read, transferTo
-
Field Details
-
buffer
protected char[] buffer -
firstInvalidIndex
protected int firstInvalidIndex -
index
protected int index -
markLimitIndex
protected int markLimitIndex -
reader
-
-
Constructor Details
-
UnsyncBufferedReader
-
UnsyncBufferedReader
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
mark
- Overrides:
mark
in classReader
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classReader
-
read
- Overrides:
read
in classReader
- Throws:
IOException
-
read
- Overrides:
read
in classReader
- Throws:
IOException
-
read
- Specified by:
read
in classReader
- Throws:
IOException
-
readLine
- Throws:
IOException
-
ready
- Overrides:
ready
in classReader
- Throws:
IOException
-
reset
- Overrides:
reset
in classReader
- Throws:
IOException
-
skip
- Overrides:
skip
in classReader
- Throws:
IOException
-
fillInBuffer
- Throws:
IOException
-
readOnce
- Throws:
IOException
-