Class UnsyncBufferedInputStream
Object
InputStream
com.liferay.portal.kernel.io.unsync.UnsyncFilterInputStream
com.liferay.portal.kernel.io.unsync.UnsyncBufferedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
See https://issues.liferay.com/browse/LPS-6648.
- Author:
- Shuyang Zhou
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]protected intprotected intprotected intFields inherited from class com.liferay.portal.kernel.io.unsync.UnsyncFilterInputStream
inputStream -
Constructor Summary
ConstructorsConstructorDescriptionUnsyncBufferedInputStream(InputStream inputStream) UnsyncBufferedInputStream(InputStream inputStream, int size) -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
buffer
protected byte[] buffer -
firstInvalidIndex
protected int firstInvalidIndex -
index
protected int index -
markLimitIndex
protected int markLimitIndex
-
-
Constructor Details
-
UnsyncBufferedInputStream
-
UnsyncBufferedInputStream
-
-
Method Details
-
available
- Overrides:
availablein classUnsyncFilterInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classUnsyncFilterInputStream- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
markin classUnsyncFilterInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classUnsyncFilterInputStream
-
read
- Overrides:
readin classUnsyncFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classUnsyncFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classUnsyncFilterInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classUnsyncFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classUnsyncFilterInputStream- Throws:
IOException
-
fillInBuffer
- Throws:
IOException
-
readOnce
- Throws:
IOException
-