org.jets3t.service.io
Class SegmentedRepeatableFileInputStream
java.lang.Object
java.io.InputStream
org.jets3t.service.io.RepeatableFileInputStream
org.jets3t.service.io.SegmentedRepeatableFileInputStream
- All Implemented Interfaces:
- java.io.Closeable, InputStreamWrapper
public class SegmentedRepeatableFileInputStream
- extends RepeatableFileInputStream
A repeatable input stream for files. This input stream can be repeated an unlimited number of
times, without any limitation on when a repeat can occur.
Methods inherited from class java.io.InputStream |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
offset
protected long offset
segmentLength
protected long segmentLength
SegmentedRepeatableFileInputStream
public SegmentedRepeatableFileInputStream(java.io.File file,
long offset,
long segmentLength)
throws java.io.IOException
- Creates a repeatable input stream based on a file.
- Parameters:
file
-
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Overrides:
available
in class RepeatableFileInputStream
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Overrides:
read
in class RepeatableFileInputStream
- Throws:
java.io.IOException
read
public int read(byte[] bytes,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class RepeatableFileInputStream
- Throws:
java.io.IOException