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.
|
BufferableContentHandle<C,R> |
newHandle()
Constructs a new handle for the same content representation,
initializing the new handle with the same format and mime type.
|
default BufferableContentHandle<C,R> |
newHandle(C content)
Constructs a new handle for the same content representation,
initializing the new handle with the same format and mime type
and new content.
|
default BufferableContentHandle<C,R>[] |
newHandleArray(int length)
Constructs an uninitialized array with the specified length with items
of the same content representation.
|
BufferableContentHandle<?,?> |
resendableHandleFor(C content)
Provides a handle that can resend the content.
|
default BufferableContentHandle<?,?>[] |
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, set
C toContent(R serialization)
serialization
- a serialization of the contentC bytesToContent(byte[] buffer)
buffer
- the byte serializationbyte[] contentToBytes(C content)
content
- the contentBufferableContentHandle<C,R> newHandle()
ContentHandle
newHandle
in interface ContentHandle<C>
default BufferableContentHandle<C,R> newHandle(C content)
ContentHandle
newHandle
in interface ContentHandle<C>
content
- the new content to initialize the new handledefault BufferableContentHandle<C,R>[] newHandleArray(int length)
length
- the number of positions in the arrayBufferableContentHandle<?,?> resendableHandleFor(C content)
content
- the contentdefault BufferableContentHandle<?,?>[] resendableHandleFor(C[] content)
content
- the array of contentCopyright © 2013-2021 MarkLogic Corporation.