C
- the handled content representationR
- the serialization when reading the content from a responsepublic interface BufferableContentHandle<C,R> extends BufferableHandle, ContentHandle<C>
Modifier and Type | Method and Description |
---|---|
C |
bytesToContent(byte[] buffer)
Converts a byte serialization to the content representation.
|
byte[] |
contentToBytes(C content)
Converts the content representation to bytes.
|
BufferableHandle |
resendableHandleFor(C content)
Provides a handle that can resend the content.
|
default BufferableHandle[] |
resendableHandleFor(C[] content)
Provides an array of handles that can resend an array of content.
|
C |
toContent(R serialization)
Converts the serialization to the content representation.
|
fromBuffer, toBuffer
get, getContentClass, newArray, newHandle, newHandle, set
C toContent(R serialization)
serialization
- a serialization of the contentC bytesToContent(byte[] buffer)
buffer
- the byte serializationbyte[] contentToBytes(C content)
content
- the contentBufferableHandle resendableHandleFor(C content)
content
- the contentdefault BufferableHandle[] resendableHandleFor(C[] content)
content
- the array of contentCopyright © 2013-2020 MarkLogic Corporation.