class BZip2Decompressor implements OptionDecompressor<T> {

  @Override
  public T decompress(byte[] compressed) throws IOException {
    try (ByteArrayInputStream inputStream = new ByteArrayInputStream(compressed);
        BZip2CompressorInputStream bzip2Input = new BZip2CompressorInputStream(inputStream)) {
      return inputStreamConverter.readStream(bzip2Input);
    }
  }

  public  BZip2Decompressor(InputStreamConverter<T> inputStreamConverter);

}