Package io.activej.csp.binary.codec.impl
Class OfDelimiter
java.lang.Object
io.activej.csp.binary.codec.impl.OfDelimiter
- All Implemented Interfaces:
ByteBufsCodec<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
public final class OfDelimiter
extends Object
implements ByteBufsCodec<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ByteBufsDecoder<io.activej.bytebuf.ByteBuf>final UnaryOperator<io.activej.bytebuf.ByteBuf> -
Constructor Summary
ConstructorsConstructorDescriptionOfDelimiter(UnaryOperator<io.activej.bytebuf.ByteBuf> delimiterOut, ByteBufsDecoder<io.activej.bytebuf.ByteBuf> delimiterIn) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.csp.binary.codec.ByteBufsCodec
transform
-
Field Details
-
delimiterOut
-
delimiterIn
-
-
Constructor Details
-
OfDelimiter
public OfDelimiter(UnaryOperator<io.activej.bytebuf.ByteBuf> delimiterOut, ByteBufsDecoder<io.activej.bytebuf.ByteBuf> delimiterIn)
-
-
Method Details
-
encode
public io.activej.bytebuf.ByteBuf encode(io.activej.bytebuf.ByteBuf buf) - Specified by:
encodein interfaceByteBufsCodec<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
-
tryDecode
@Nullable public @Nullable io.activej.bytebuf.ByteBuf tryDecode(io.activej.bytebuf.ByteBufs bufs) throws io.activej.common.exception.MalformedDataException - Specified by:
tryDecodein interfaceByteBufsCodec<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> - Throws:
io.activej.common.exception.MalformedDataException
-