Class LZ4Legacy.Decoder
java.lang.Object
io.activej.csp.process.frame.impl.LZ4Legacy.Decoder
- All Implemented Interfaces:
BlockDecoder
- Enclosing class:
- LZ4Legacy
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated. -
Field Summary
Fields inherited from interface io.activej.csp.process.frame.BlockDecoder
END_OF_STREAM -
Method Summary
Modifier and TypeMethodDescription@Nullable io.activej.bytebuf.ByteBufdecode(io.activej.bytebuf.ByteBufs bufs) Deprecated.Attempts to decode data blocks contained in aByteBufs.booleanDeprecated.Whether this decoder allows stream to end without End-Of-Stream Block.voidreset()Deprecated.Attempts to reset some internal state of decoder.
-
Method Details
-
reset
public void reset()Deprecated.Description copied from interface:BlockDecoderAttempts to reset some internal state of decoder. This method is called after each successfully decoded block (ifChannelFrameDecoderis configured to do so).- Specified by:
resetin interfaceBlockDecoder
-
decode
@Nullable public @Nullable io.activej.bytebuf.ByteBuf decode(io.activej.bytebuf.ByteBufs bufs) throws io.activej.common.exception.MalformedDataException Deprecated.Description copied from interface:BlockDecoderAttempts to decode data blocks contained in aByteBufs.Decoder is forbidden to consume any bytes from bufs if it has not yet determined that encoded data corresponds to decoder's format
- Specified by:
decodein interfaceBlockDecoder- Parameters:
bufs- queue that contains encoded data- Returns:
- a
ByteBufthat contains successfully decoded data ornullwhich indicates that there are not enough data in bufs for a block to be decoded.If this method returns
BlockDecoder.END_OF_STREAMit indicates that end of stream has been reached and no more data is expected. - Throws:
io.activej.common.exception.UnknownFormatException- if data is encoded using unknown formatio.activej.common.exception.MalformedDataException- if data is malformed
-
ignoreMissingEndOfStreamBlock
public boolean ignoreMissingEndOfStreamBlock()Deprecated.Description copied from interface:BlockDecoderWhether this decoder allows stream to end without End-Of-Stream Block.Stream still has to end with a valid complete Data Block (or be empty) and should not have any trailing data after the last block
- Specified by:
ignoreMissingEndOfStreamBlockin interfaceBlockDecoder- Returns:
- whether decoder supports missing End-Of-Stream Blocks
-