Closeable, AutoCloseable, InputStreamWrapperSegmentedRepeatableFileInputStreampublic class RepeatableFileInputStream extends InputStream implements InputStreamWrapper
| Constructor | Description |
|---|---|
RepeatableFileInputStream(File file) |
Creates a repeatable input stream based on a file.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
InputStream |
getWrappedInputStream() |
|
void |
mark(int readlimit) |
|
boolean |
markSupported() |
|
int |
read() |
|
int |
read(byte[] arg0,
int arg1,
int arg2) |
|
void |
reset() |
Resets the input stream to the last mark point, or the beginning of the stream if
there is no mark point, by creating a new FileInputStream based on the
underlying file.
|
long |
skip(long toSkip) |
read, readAllBytes, readNBytes, transferTopublic RepeatableFileInputStream(File file) throws FileNotFoundException
file - FileNotFoundExceptionpublic long skip(long toSkip)
throws IOException
skip in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamUnrecoverableIOException - when the FileInputStream cannot be re-created.IOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] arg0,
int arg1,
int arg2)
throws IOException
read in class InputStreamIOExceptionpublic InputStream getWrappedInputStream()
getWrappedInputStream in interface InputStreamWrapper