public abstract class SegmentationPlan
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Long |
currentSegment |
protected java.lang.Long |
segmentationSize |
| Constructor and Description |
|---|
SegmentationPlan(java.lang.Long segmentationSize) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Closes the underlying File, if appropriate
|
protected abstract java.io.InputStream |
createSegment()
Creates an InputStream from the current segment
|
protected boolean |
done()
Checks whether all segments have been done
|
protected abstract java.lang.Long |
getFileLength()
Returns the file length of the object
|
java.io.InputStream |
getNextSegment() |
java.lang.Long |
getSegmentNumber() |
protected java.lang.Long segmentationSize
protected java.lang.Long currentSegment
public java.lang.Long getSegmentNumber()
public java.io.InputStream getNextSegment()
throws java.io.IOException
java.io.IOExceptionprotected boolean done()
protected abstract java.lang.Long getFileLength()
protected abstract java.io.InputStream createSegment()
throws java.io.IOException
java.io.IOException - thrown if error occurspublic abstract void close()
throws java.io.IOException
java.io.IOException - thrown if error occursCopyright © 2012-2020 42 BV. All Rights Reserved.