public class ByteArrayFileInputStream
extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
data |
protected boolean |
deleteOnClose |
protected File |
file |
protected FileInputStream |
fileInputStream |
protected long |
fileSize |
protected int |
index |
protected int |
markIndex |
protected int |
threshold |
| Constructor and Description |
|---|
ByteArrayFileInputStream(File file,
int threshold) |
ByteArrayFileInputStream(File file,
int threshold,
boolean deleteOnClose) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
File |
getFile() |
protected void |
initData() |
protected void |
initFileInputStream() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int offset,
int length) |
void |
reset() |
long |
skip(long skip) |
protected byte[] data
protected boolean deleteOnClose
protected File file
protected FileInputStream fileInputStream
protected long fileSize
protected int index
protected int markIndex
protected int threshold
public ByteArrayFileInputStream(File file,
int threshold)
public ByteArrayFileInputStream(File file,
int threshold,
boolean deleteOnClose)
public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic File getFile()
public void mark(int readLimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long skip)
throws IOException
skip in class InputStreamIOExceptionprotected void initData()
throws IOException
IOExceptionprotected void initFileInputStream()
throws IOException
IOException