Package io.activej.csp.binary.decoder
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.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> ByteBufsDecoder<V>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)
-