Class NOPCompressionHandler

  • All Implemented Interfaces:
    CompressionHandler

    public class NOPCompressionHandler
    extends Object
    implements CompressionHandler
    A NOP implementation of the Compression Handler, which will be used when no compression is to be applied.
    Since:
    2.0.0
    • Constructor Detail

      • NOPCompressionHandler

        public NOPCompressionHandler()
    • Method Detail

      • compress

        public byte[] compress​(byte[] bytes)
        Simple returns the same byte array as it is given.
        Specified by:
        compress in interface CompressionHandler
        Parameters:
        bytes - The array of bytes to compress.
        Returns:
        The compressed representation of the byte array.
      • decompress

        public byte[] decompress​(byte[] bytes)
        Simply returns the same byte array as it is given.
        Specified by:
        decompress in interface CompressionHandler
        Parameters:
        bytes - The array of bytes to decompress.
        Returns:
        The decompressed representation of the byte array.