AbstractReadHandle, AbstractWriteHandleBufferableContentHandle<C,R>, ResendableContentHandle<C,R>, StreamingContentHandle<C,R>BytesHandle, DOM4JHandle, DOMHandle, FileHandle, GSONHandle, InputSourceHandle, InputStreamHandle, JacksonDatabindHandle, JacksonHandle, JacksonParserHandle, JAXBHandle, JDOMHandle, ReaderHandle, SourceHandle, StringHandle, XMLEventReaderHandle, XMLStreamReaderHandlepublic interface ContentHandle<C> extends AbstractReadHandle, AbstractWriteHandle
| Modifier and Type | Method | Description |
|---|---|---|
C |
get() |
Returns the content.
|
default java.lang.Class<C> |
getContentClass() |
Returns the class of the handled content, which may be a base
class of the actual class of a content object.
|
default C[] |
newArray(int length) |
Constructs an array for the handled content representation
|
default ContentHandle<C> |
newHandle() |
Constructs a new handle for the same content representation,
initializing the new handle with the same format and mime type.
|
default ContentHandle<C> |
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.
|
void |
set(C content) |
Assigns the content.
|
C get()
void set(C content)
content - the contentdefault java.lang.Class<C> getContentClass()
default ContentHandle<C> newHandle()
default ContentHandle<C> newHandle(C content)
content - the new content to initialize the new handledefault C[] newArray(int length)
length - the size of the array (zero or more)Copyright © 2013-2021 MarkLogic Corporation.