public class MarkableFileInputStream extends java.io.FilterInputStream
FileInputStream to support marking. This is
preferable over using a BufferedInputStream, which tries to keep the
entire file in memory (and will fail for large files).
This solution is based on code from
here.| Constructor and Description |
|---|
MarkableFileInputStream(java.io.FileInputStream fis)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
mark(int readlimit) |
boolean |
markSupported() |
void |
reset() |
public MarkableFileInputStream(java.io.FileInputStream fis)
public boolean markSupported()
markSupported in class java.io.FilterInputStreampublic void mark(int readlimit)
mark in class java.io.FilterInputStreampublic void reset() throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOException