C - the handled content representationR - the serialization when reading the content from a responseAbstractReadHandle, AbstractWriteHandle, BufferableHandle, ContentHandle<C>ResendableContentHandle<C,R>, StreamingContentHandle<C,R>BytesHandle, DOM4JHandle, DOMHandle, FileHandle, GSONHandle, InputSourceHandle, InputStreamHandle, JacksonDatabindHandle, JacksonHandle, JacksonParserHandle, JAXBHandle, JDOMHandle, ReaderHandle, SourceHandle, StringHandle, XMLEventReaderHandle, XMLStreamReaderHandlepublic interface BufferableContentHandle<C,R> extends BufferableHandle, ContentHandle<C>
| Modifier and Type | Method | 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, toBufferget, getContentClass, newArray, setC 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()
ContentHandlenewHandle in interface ContentHandle<C>default BufferableContentHandle<C,R> newHandle(C content)
ContentHandlenewHandle 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.