private void downloadOneChunk(String accountId, String vaultName, String jobId, RandomAccessFile output, long currentPosition, long endPosition) {
TreeHashInputStream input;
int retries = 0;
while (true) {
try {
GetJobOutputResult jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
.withAccountId(accountId)
.withVaultName(vaultName)
.withRange("bytes=" + Long.toString(currentPosition) + "-" + Long.toString(endPosition))
.withJobId(jobId));