Class BinaryCodec.ByteBufferArray
java.lang.Object
ch.raffael.meldioc.library.http.server.undertow.codec.BinaryCodec<ByteBuffer[]>
ch.raffael.meldioc.library.http.server.undertow.codec.BinaryCodec.ByteBufferArray
- All Implemented Interfaces:
HttpDecoder<ByteBuffer[]>,HttpEncoder<ByteBuffer[]>
- 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
ConstructorsConstructorDescriptionByteBufferArray(ch.raffael.meldioc.library.codec.ContentType... contentType) ByteBufferArray(io.vavr.collection.Traversable<? extends ch.raffael.meldioc.library.codec.ContentType> contentTypes) ByteBufferArray(String... contentTypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected ByteBuffer[]fromBytes(byte[] bytes) protected ByteBuffer[]toByteBuffers(ByteBuffer[] value) Methods inherited from class ch.raffael.meldioc.library.http.server.undertow.codec.BinaryCodec
decode, encode
-
Constructor Details
-
ByteBufferArray
-
ByteBufferArray
public ByteBufferArray(ch.raffael.meldioc.library.codec.ContentType... contentType) -
ByteBufferArray
public ByteBufferArray(io.vavr.collection.Traversable<? extends ch.raffael.meldioc.library.codec.ContentType> contentTypes)
-
-
Method Details
-
toByteBuffers
- Specified by:
toByteBuffersin classBinaryCodec<ByteBuffer[]>
-
fromBytes
- Specified by:
fromBytesin classBinaryCodec<ByteBuffer[]>
-