Class BinaryCodec.ByteArray
java.lang.Object
ch.raffael.meldioc.library.http.server.undertow.codec.BinaryCodec<byte[]>
ch.raffael.meldioc.library.http.server.undertow.codec.BinaryCodec.ByteArray
- All Implemented Interfaces:
HttpDecoder<byte[]>,HttpEncoder<byte[]>
- Enclosing class:
BinaryCodec<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.raffael.meldioc.library.http.server.undertow.codec.BinaryCodec
BinaryCodec.ByteArray, BinaryCodec.ByteBuffer, BinaryCodec.ByteBufferArrayNested classes/interfaces inherited from interface ch.raffael.meldioc.library.http.server.undertow.codec.HttpDecoder
HttpDecoder.Consumer<B>, HttpDecoder.IgnoreBodyDecoder<B> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]fromBytes(byte[] bytes) protected ByteBuffer[]toByteBuffers(byte[] value) Methods inherited from class ch.raffael.meldioc.library.http.server.undertow.codec.BinaryCodec
decode, encode
-
Constructor Details
-
ByteArray
-
ByteArray
public ByteArray(ch.raffael.meldioc.library.codec.ContentType... contentType) -
ByteArray
public ByteArray(io.vavr.collection.Traversable<? extends ch.raffael.meldioc.library.codec.ContentType> contentTypes)
-
-
Method Details
-
toByteBuffers
- Specified by:
toByteBuffersin classBinaryCodec<byte[]>
-
fromBytes
protected byte[] fromBytes(byte[] bytes) - Specified by:
fromBytesin classBinaryCodec<byte[]>
-