Package io.activej.csp.binary.codec
Class ByteBufsCodecs
java.lang.Object
io.activej.csp.binary.codec.ByteBufsCodecs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBufsCodec<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> static ByteBufsCodec<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> ofDelimiter(ByteBufsDecoder<io.activej.bytebuf.ByteBuf> delimiterIn, UnaryOperator<io.activej.bytebuf.ByteBuf> delimiterOut) static <T> ByteBufsCodec<T,T> ofStreamCodecs(StreamCodec<T> codec) static <I,O> ByteBufsCodec<I, O> ofStreamCodecs(StreamDecoder<I> decoder, StreamEncoder<O> encoder)
-
Constructor Details
-
ByteBufsCodecs
public ByteBufsCodecs()
-
-
Method Details
-
ofDelimiter
public static ByteBufsCodec<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> ofDelimiter(ByteBufsDecoder<io.activej.bytebuf.ByteBuf> delimiterIn, UnaryOperator<io.activej.bytebuf.ByteBuf> delimiterOut) -
nullTerminated
-
ofStreamCodecs
public static <I,O> ByteBufsCodec<I,O> ofStreamCodecs(StreamDecoder<I> decoder, StreamEncoder<O> encoder) -
ofStreamCodecs
-