Class LZ4.Encoder

java.lang.Object
io.activej.csp.process.frame.impl.LZ4.Encoder
All Implemented Interfaces:
BlockEncoder
Enclosing class:
LZ4

public static final class LZ4.Encoder extends Object implements BlockEncoder
  • Method Details

    • reset

      public void reset()
      Description copied from interface: BlockEncoder
      Attempts to reset some internal state of encoder. This method is called before each call to BlockEncoder.encode(ByteBuf) (if ChannelFrameEncoder is configured to do so).
      Specified by:
      reset in interface BlockEncoder
    • encode

      public io.activej.bytebuf.ByteBuf encode(io.activej.bytebuf.ByteBuf inputBuf)
      Description copied from interface: BlockEncoder
      Encodes input ByteBuf as a Data Block. Input bufs are not empty. If it is the first bytebuf, encoder may encode Stream Header together with Data Block.
      Specified by:
      encode in interface BlockEncoder
      Parameters:
      inputBuf - buf to be encoded
      Returns:
      ByteBuf that contains encoded data
    • encodeEndOfStreamBlock

      public io.activej.bytebuf.ByteBuf encodeEndOfStreamBlock()
      Description copied from interface: BlockEncoder
      Encodes an End-Of-Stream Block which indicates an end of stream.
      Specified by:
      encodeEndOfStreamBlock in interface BlockEncoder
      Returns:
      ByteBuf which contains End-Of-Stream block