Interface ByteBufsCodec<I,O>

All Known Implementing Classes:
OfDelimiter, OfStreamCodecs

public interface ByteBufsCodec<I,O>
  • Method Summary

    Modifier and Type
    Method
    Description
    io.activej.bytebuf.ByteBuf
    encode(O item)
     
    default <I1, O1> ByteBufsCodec<I1,O1>
    transform(io.activej.common.function.DecoderFunction<? super I,? extends I1> decoder, Function<? super O1,? extends O> encoder)
     
    tryDecode(io.activej.bytebuf.ByteBufs bufs)
     
  • Method Details

    • encode

      io.activej.bytebuf.ByteBuf encode(O item)
    • tryDecode

      @Nullable I tryDecode(io.activej.bytebuf.ByteBufs bufs) throws io.activej.common.exception.MalformedDataException
      Throws:
      io.activej.common.exception.MalformedDataException
    • transform

      default <I1, O1> ByteBufsCodec<I1,O1> transform(io.activej.common.function.DecoderFunction<? super I,? extends I1> decoder, Function<? super O1,? extends O> encoder)