Class Decoders

java.lang.Object
com.aayushatharva.brotli4j.decoder.Decoders

public final class Decoders extends Object
Multiple decoding methods using ByteBuffer.
  • Constructor Details

    • Decoders

      public Decoders()
  • Method Details

    • decompress

      public static DirectDecompress decompress(ByteBuffer compressed, ByteBuffer decompressed) throws IOException
      Decodes the given data buffer.
      Parameters:
      compressed - ByteBuffer source - will be read in full (position == limit after this call).
      decompressed - ByteBuffer destination - compressed data will be filled in beginning at position, up to remaining bytes; position is updated
      Returns:
      DirectDecompress instance - upon return, only the status code is still valid
      Throws:
      IOException - Thrown in case of error during decoding