Package com.liferay.portal.kernel.io
Class ByteArrayFileInputStream
Object
InputStream
com.liferay.portal.kernel.io.ByteArrayFileInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Author:
- Shuyang Zhou
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]
protected boolean
protected File
protected FileInputStream
protected long
protected int
protected int
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayFileInputStream
(File file, int threshold) ByteArrayFileInputStream
(File file, int threshold, boolean deleteOnClose) -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
data
protected byte[] data -
deleteOnClose
protected boolean deleteOnClose -
file
-
fileInputStream
-
fileSize
protected long fileSize -
index
protected int index -
markIndex
protected int markIndex -
threshold
protected int threshold
-
-
Constructor Details
-
ByteArrayFileInputStream
-
ByteArrayFileInputStream
-
-
Method Details
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
getFile
-
mark
public void mark(int readLimit) - Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
initData
- Throws:
IOException
-
initFileInputStream
- Throws:
IOException
-