Class LZ4Legacy.Encoder
java.lang.Object
io.activej.csp.process.frame.impl.LZ4Legacy.Encoder
- All Implemented Interfaces:
BlockEncoder
- Enclosing class:
- LZ4Legacy
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionio.activej.bytebuf.ByteBufencode(io.activej.bytebuf.ByteBuf inputBuf) Deprecated.Encodes inputByteBufas a Data Block.io.activej.bytebuf.ByteBufDeprecated.Encodes an End-Of-Stream Block which indicates an end of stream.voidreset()Deprecated.Attempts to reset some internal state of encoder.
-
Method Details
-
reset
public void reset()Deprecated.Description copied from interface:BlockEncoderAttempts to reset some internal state of encoder. This method is called before each call toBlockEncoder.encode(ByteBuf)(ifChannelFrameEncoderis configured to do so).- Specified by:
resetin interfaceBlockEncoder
-
encode
public io.activej.bytebuf.ByteBuf encode(io.activej.bytebuf.ByteBuf inputBuf) Deprecated.Description copied from interface:BlockEncoderEncodes inputByteBufas 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:
encodein interfaceBlockEncoder- Parameters:
inputBuf- buf to be encoded- Returns:
ByteBufthat contains encoded data
-
encodeEndOfStreamBlock
public io.activej.bytebuf.ByteBuf encodeEndOfStreamBlock()Deprecated.Description copied from interface:BlockEncoderEncodes an End-Of-Stream Block which indicates an end of stream.- Specified by:
encodeEndOfStreamBlockin interfaceBlockEncoder- Returns:
ByteBufwhich contains End-Of-Stream block
-