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