public class SegmentedRepeatableFileInputStream extends RepeatableFileInputStream
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
log |
protected long |
offset |
protected long |
segmentLength |
bytesReadPastMarkPoint, file, fis, markPoint| Constructor and Description |
|---|
SegmentedRepeatableFileInputStream(java.io.File file,
long offset,
long segmentLength)
Creates a repeatable input stream based on a file.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
private long |
getRelativeMarkPoint() |
int |
read() |
int |
read(byte[] bytes,
int off,
int len) |
private void |
skipToOffset() |
close, getWrappedInputStream, mark, markSupported, reset, skipprivate static final org.apache.commons.logging.Log log
protected long offset
protected long segmentLength
public SegmentedRepeatableFileInputStream(java.io.File file,
long offset,
long segmentLength)
throws java.io.IOException
file - java.io.IOExceptionprivate void skipToOffset()
throws java.io.IOException
java.io.IOExceptionpublic int available()
throws java.io.IOException
available in class RepeatableFileInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class RepeatableFileInputStreamjava.io.IOExceptionpublic int read(byte[] bytes,
int off,
int len)
throws java.io.IOException
read in class RepeatableFileInputStreamjava.io.IOExceptionprivate long getRelativeMarkPoint()