Interface ByteBufsDecoder<T>

All Known Implementing Classes:
OfByteSizePrefixed, OfByteTerminated, OfCrlfTerminated, OfIntSizePrefixed, OfShortSizePrefixed, OfVarIntSizePrefixed
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ByteBufsDecoder<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> ByteBufsDecoder<V>
    andThen(io.activej.common.function.DecoderFunction<? super T,? extends V> after)
     
    tryDecode(io.activej.bytebuf.ByteBufs bufs)
     
  • Method Details

    • tryDecode

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

      default <V> ByteBufsDecoder<V> andThen(io.activej.common.function.DecoderFunction<? super T,? extends V> after)