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, skippublic 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 InputStreamIOExceptionCopyright © 2008–2021 The Open Preservation Foundation. All rights reserved.