Bucket inputBucket = new SimpleReadOnlyArrayBucket(input, inputOffset, inputLength-inputOffset);
Bucket outputBucket = bf.makeBucket(maxLength);
outputStream = outputBucket.getOutputStream();
inputStream = inputBucket.getInputStream();
try {
decompressor.decompress(inputStream, outputStream, maxLength, -1);
} catch (CompressionOutputSizeException e) {
throw new TooBigException("Too big");
} finally {
inputStream.close();
outputStream.close();