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 intprotected intprotected intprotected Reader -
Constructor Summary
ConstructorsConstructorDescriptionUnsyncBufferedReader(Reader reader) UnsyncBufferedReader(Reader reader, int size) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidvoidmark(int markLimit) booleanintread()intread(char[] chars) intread(char[] chars, int offset, int length) readLine()protected intreadOnce(char[] chars, int offset, int length) booleanready()voidreset()longskip(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
mark
- Overrides:
markin classReader- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classReader
-
read
- Overrides:
readin classReader- Throws:
IOException
-
read
- Overrides:
readin classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-
readLine
- Throws:
IOException
-
ready
- Overrides:
readyin classReader- Throws:
IOException
-
reset
- Overrides:
resetin classReader- Throws:
IOException
-
skip
- Overrides:
skipin classReader- Throws:
IOException
-
fillInBuffer
- Throws:
IOException
-
readOnce
- Throws:
IOException
-