public class SegmentationPlanBoundedInputStream extends SegmentationPlan
currentSegment, segmentationSize| Constructor and Description |
|---|
SegmentationPlanBoundedInputStream(java.io.InputStream inputStream,
long length,
java.lang.Long segmentationSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying File, if appropriate
|
protected java.io.InputStream |
createSegment()
Creates an InputStream from the current segment
|
protected java.lang.Long |
getFileLength()
Returns the file length of the object
|
done, getNextSegment, getSegmentNumberpublic SegmentationPlanBoundedInputStream(java.io.InputStream inputStream,
long length,
java.lang.Long segmentationSize)
protected java.lang.Long getFileLength()
SegmentationPlangetFileLength in class SegmentationPlanprotected java.io.InputStream createSegment()
throws java.io.IOException
SegmentationPlancreateSegment in class SegmentationPlanjava.io.IOException - thrown if error occurspublic void close()
throws java.io.IOException
SegmentationPlanclose in class SegmentationPlanjava.io.IOException - thrown if error occursCopyright © 2012-2020 42 BV. All Rights Reserved.