class SnappyCompressor {

  public int uncompressedLength(final byte[] compressed) {
    checkNotNull(compressed, "input data must not be null");
    try {
      return Snappy.uncompressedLength(compressed);
    } catch (final IOException e) {
      throw new FramingException("Snappy uncompressedLength failed", e);
    }
  }

}