class IcyDecoder implements MetadataDecoder {

  @Override
  @Nullable
  @SuppressWarnings("ByteBufferBackingArray")
  public Metadata decode(MetadataInputBuffer inputBuffer) {
    ByteBuffer buffer = inputBuffer.data;
    byte[] data = buffer.array();
    int length = buffer.limit();
    return decode(Util.fromUtf8Bytes(data, 0, length));
  }

}