Class LZ4Legacy.Encoder

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

@Deprecated public static final class LZ4Legacy.Encoder extends Object implements BlockEncoder
Deprecated.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.activej.bytebuf.ByteBuf
    encode(io.activej.bytebuf.ByteBuf inputBuf)
    Deprecated.
    Encodes input ByteBuf as a Data Block.
    io.activej.bytebuf.ByteBuf
    Deprecated.
    Encodes an End-Of-Stream Block which indicates an end of stream.
    void
    Deprecated.
    Attempts to reset some internal state of encoder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • reset

      public void reset()
      Deprecated.
      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)
      Deprecated.
      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()
      Deprecated.
      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