Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.javaswift.joss.instructions;
 
 import java.io.File;
 
 public class SegmentationPlanFile extends SegmentationPlan {
    private Long fileLength;
    public SegmentationPlanFile(File filelong segmentationSizethrows IOException {
        super(segmentationSize);
        this. = new RandomAccessFile(file"r");
        this. = this..length();
    }
    @Override
    protected Long getFileLength() {
        return this.;
    }
    @Override
    protected InputStream createSegment() throws IOException {
        return new FixedLengthInputStream(
    }
    @Override
    public void close() throws IOException {
        this..close();
    }
New to GrepCode? Check out our FAQ X