public class FragmentInputStream extends InputStream
Constructor and Description |
---|
FragmentInputStream(List<long[]> fragments,
RandomAccessFile raf) |
FragmentInputStream(List<long[]> fragments,
RandomAccessFile raf,
int bufSize) |
Modifier and Type | Method and Description |
---|---|
int |
read()
Returns the next byte from the stream, buffering each fragment
in turn until the last fragment is exhausted.
|
available, close, mark, markSupported, read, read, reset, skip
public FragmentInputStream(List<long[]> fragments, RandomAccessFile raf)
fragments
- List of fragment entries.
Each fragment entry is an array of two longs,
with fragment[0] being the length and
fragment[1] the offset.public FragmentInputStream(List<long[]> fragments, RandomAccessFile raf, int bufSize)
public int read() throws IOException
read
in class InputStream
IOException
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.