List of usage examples for com.amazonaws.services.s3.internal InputSubstream InputSubstream
public InputSubstream(InputStream in, long offset, long length, boolean closeSourceStream)
From source file:de.kopis.glacier.commands.UploadMultipartArchiveCommand.java
License:Open Source License
private InputSubstream newInputSubstream(File file, long startingPosition, long length) { try {//from www .j av a2 s. c o m return new InputSubstream(new RepeatableFileInputStream(file), startingPosition, length, true); } catch (FileNotFoundException e) { throw new AmazonClientException("Unable to find file '" + file.getAbsolutePath() + "'", e); } }