Class Brotli


public class Brotli extends Filter
Brotli decoder
  • Constructor Details

  • Method Details

    • decode

      public byte[] decode(byte[] valuesRead) throws IOException
      Brotli decode using our own implementation
      Specified by:
      decode in class Filter
      Parameters:
      valuesRead - byte[] to be decoded
      Returns:
      byte[] of decoded data
      Throws:
      IOException
    • decode

      public void decode(BufferedInputStream bis, BufferedOutputStream streamCache, String cacheName, Map<String,String> cachedObjects) throws IOException
      Brotli decode using our own implementation
      Specified by:
      decode in class Filter
      Parameters:
      bis - BufferedInputStream to decode
      streamCache - BufferedOutputStream of decoded data
      cacheName - Name of cache object
      cachedObjects - Map of cache object
      Throws:
      IOException
    • encode

      public byte[] encode(byte[] data) throws IOException
      Brotli encode using our own implementation
      Specified by:
      encode in class Filter
      Parameters:
      data - The data to encode
      Returns:
      The resulting Brotli encoded output
      Throws:
      IOException
    • encode

      public void encode(BufferedInputStream bis, BufferedOutputStream bos) throws Exception
      Brotli encode using our own implementation
      Specified by:
      encode in class Filter
      Parameters:
      bis - An input stream containing the data to encode
      bos - The output stream to write the Brotli encoded output to
      Throws:
      Exception