Top Description Constructors Methods
com.aayushatharva.brotli4j.decoder

public final Class Decoders

extends Object
Class Inheritance
Annotations
@Local
Imports
com.aayushatharva.brotli4j.common.annotations.Local, io.netty.buffer.ByteBuf, .PooledByteBufAllocator, java.io.IOException, java.nio.ByteBuffer

Multiple decoding methods using Netty Buffer. Make sure to add it as dependency before using this class
See Also
Netty Buffer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static DirectDecompress

Returns:

DirectDecompress instance - upon return, only the status code is still valid
decompress
(ByteBuffer
ByteBuffer source - will be read in full (position == limit after this call).
compressed
,
ByteBuffer
ByteBuffer destination - compressed data will be filled in beginning at position, up to remaining bytes; position is updated
decompressed
)

Decodes the given data buffer.

public static DirectDecompress

Returns:

DirectDecompress instance
decompress
(ByteBuf
ByteBuf source
compressed
,
ByteBuf
ByteBuf destination
decompressed
)

Decodes the given data buffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Decodersback to summary
public Decoders()

Method Detail

decompressback to summary
public static DirectDecompress decompress(ByteBuffer compressed, ByteBuffer decompressed) throws IOException

Decodes the given data buffer.

Parameters
compressed:ByteBuffer

ByteBuffer source - will be read in full (position == limit after this call).

decompressed:ByteBuffer

ByteBuffer destination - compressed data will be filled in beginning at position, up to remaining bytes; position is updated

Returns:DirectDecompress

DirectDecompress instance - upon return, only the status code is still valid

Annotations
@Local
Exceptions
IOException:
Thrown in case of error during decoding
decompressback to summary
public static DirectDecompress decompress(ByteBuf compressed, ByteBuf decompressed) throws IOException

Decodes the given data buffer.

Parameters
compressed:ByteBuf

ByteBuf source

decompressed:ByteBuf

ByteBuf destination

Returns:DirectDecompress

DirectDecompress instance

Annotations
@Local
Exceptions
IOException:
Thrown in case of error during encoding