public class InputStreamSegment
extends com.emc.rest.util.SizedInputStream
InputStream
by seeking to the offset
and providing only
length
bytes.Constructor and Description |
---|
InputStreamSegment(java.io.InputStream inputStream,
long offset,
long length)
NOTE: This will seek into the provided stream by
offset bytes using repeated calls to
InputStream.skip(long) . |
Modifier and Type | Method and Description |
---|---|
long |
getOffset() |
public InputStreamSegment(java.io.InputStream inputStream, long offset, long length) throws java.io.IOException
offset
bytes using repeated calls to
InputStream.skip(long)
. Be sure this is what you want.java.io.IOException