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 booleanprotected Fileprotected FileInputStreamprotected longprotected intprotected intprotected 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:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
getFile
-
mark
public void mark(int readLimit) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
initData
- Throws:
IOException
-
initFileInputStream
- Throws:
IOException
-