public class RangeOutputStream extends FilterOutputStream
FilterOutputStream that only serves a slice of the data written to it.out| Constructor and Description |
|---|
RangeOutputStream(OutputStream out,
long start) |
RangeOutputStream(OutputStream out,
long start,
long end) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b,
int off,
int len)
Only partially delegates to
FilterOutputStream.write(byte[], int, int) because of decreased write performance. |
void |
write(int b) |
close, flush, writepublic RangeOutputStream(OutputStream out, long start)
out - the original output streamstart - the start positionpublic RangeOutputStream(OutputStream out, long start, long end)
out - the original output streamstart - the start positionend - the end positionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
FilterOutputStream.write(byte[], int, int) because of decreased write performance.write in class FilterOutputStreamIOExceptionCopyright © 2011-2013 Johann Burkard. All Rights Reserved.