Class MagicNumberAdapter
java.lang.Object
io.activej.csp.process.frame.impl.MagicNumberAdapter
- All Implemented Interfaces:
FrameFormat
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a decoder which decodes data encoded byBlockEncoderCreates an encoder which transforms input bufs into bufs of encoded data
-
Field Details
-
peerFormat
-
magicNumber
public final byte[] magicNumber
-
-
Constructor Details
-
MagicNumberAdapter
-
-
Method Details
-
createEncoder
Description copied from interface:FrameFormatCreates an encoder which transforms input bufs into bufs of encoded data- Specified by:
createEncoderin interfaceFrameFormat- Returns:
- block encoder
-
createDecoder
Description copied from interface:FrameFormatCreates a decoder which decodes data encoded byBlockEncoder- Specified by:
createDecoderin interfaceFrameFormat- Returns:
- block decoder
-