org.javaswift.joss.instructions
Class SegmentationPlanFile

java.lang.Object
  extended by org.javaswift.joss.instructions.SegmentationPlan
      extended by org.javaswift.joss.instructions.SegmentationPlanFile

public class SegmentationPlanFile
extends SegmentationPlan


Field Summary
 
Fields inherited from class org.javaswift.joss.instructions.SegmentationPlan
currentSegment, segmentationSize
 
Constructor Summary
SegmentationPlanFile(File file, long segmentationSize)
           
 
Method Summary
 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
 
Methods inherited from class org.javaswift.joss.instructions.SegmentationPlan
done, getNextSegment, getSegmentNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentationPlanFile

public SegmentationPlanFile(File file,
                            long segmentationSize)
                     throws IOException
Throws:
IOException
Method Detail

getFileLength

protected Long getFileLength()
Description copied from class: SegmentationPlan
Returns the file length of the object

Specified by:
getFileLength in class SegmentationPlan
Returns:
file length of the object

createSegment

protected InputStream createSegment()
                             throws IOException
Description copied from class: SegmentationPlan
Creates an InputStream from the current segment

Specified by:
createSegment in class SegmentationPlan
Returns:
the inputstream
Throws:
IOException - thrown if error occurs

close

public void close()
           throws IOException
Description copied from class: SegmentationPlan
Closes the underlying File, if appropriate

Specified by:
close in class SegmentationPlan
Throws:
IOException - thrown if error occurs


Copyright © 2012-2014 42 BV. All Rights Reserved.