Class OfStreamCodecs<I,O>

java.lang.Object
io.activej.csp.binary.codec.impl.OfStreamCodecs<I,O>
All Implemented Interfaces:
ByteBufsCodec<I,O>

public final class OfStreamCodecs<I,O> extends Object implements ByteBufsCodec<I,O>
  • Field Details

  • Constructor Details

  • Method Details

    • encode

      public io.activej.bytebuf.ByteBuf encode(O item)
      Specified by:
      encode in interface ByteBufsCodec<I,O>
    • tryDecode

      @Nullable public I tryDecode(io.activej.bytebuf.ByteBufs bufs) throws io.activej.common.exception.MalformedDataException
      Specified by:
      tryDecode in interface ByteBufsCodec<I,O>
      Throws:
      io.activej.common.exception.MalformedDataException