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:
- 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.
- Author:
- James Murty
SegmentedRepeatableFileInputStream
public SegmentedRepeatableFileInputStream(File file,
long offset,
long segmentLength)
throws IOException
- Creates a repeatable input stream based on a file.
- Parameters:
file
-
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available
in class RepeatableFileInputStream
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read
in class RepeatableFileInputStream
- Throws:
IOException
read
public int read(byte[] bytes,
int off,
int len)
throws IOException
- Overrides:
read
in class RepeatableFileInputStream
- Throws:
IOException