com.liferay.portal.kernel.io
Class ByteArrayFileInputStream
java.lang.Object
java.io.InputStream
com.liferay.portal.kernel.io.ByteArrayFileInputStream
- All Implemented Interfaces:
- Closeable, AutoCloseable
public class ByteArrayFileInputStream
- extends InputStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
protected byte[] data
deleteOnClose
protected boolean deleteOnClose
file
protected File file
fileInputStream
protected FileInputStream fileInputStream
fileSize
protected long fileSize
index
protected int index
markIndex
protected int markIndex
threshold
protected int threshold
ByteArrayFileInputStream
public ByteArrayFileInputStream(File file,
int threshold)
ByteArrayFileInputStream
public ByteArrayFileInputStream(File file,
int threshold,
boolean deleteOnClose)
available
public int available()
throws IOException
- Overrides:
available
in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in interface AutoCloseable
- Overrides:
close
in class InputStream
- Throws:
IOException
getFile
public File getFile()
mark
public void mark(int readLimit)
- Overrides:
mark
in class InputStream
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class InputStream
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] bytes)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] bytes,
int offset,
int length)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class InputStream
- Throws:
IOException
skip
public long skip(long skip)
throws IOException
- Overrides:
skip
in class InputStream
- Throws:
IOException
initData
protected void initData()
throws IOException
- Throws:
IOException
initFileInputStream
protected void initFileInputStream()
throws IOException
- Throws:
IOException