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 int
protected int
protected int
Fields 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:
available
in classUnsyncFilterInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classUnsyncFilterInputStream
- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
mark
in classUnsyncFilterInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classUnsyncFilterInputStream
-
read
- Overrides:
read
in classUnsyncFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classUnsyncFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classUnsyncFilterInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classUnsyncFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classUnsyncFilterInputStream
- Throws:
IOException
-
fillInBuffer
- Throws:
IOException
-
readOnce
- Throws:
IOException
-