R - a read handle or OperationNotSupported in the com.marklogic.client.io.marker packageW - a write handle or OperationNotSupported in the com.marklogic.client.io.marker packageContentDescriptorBytesHandle, DocumentMetadataHandle, DOM4JHandle, DOMHandle, FileHandle, GSONHandle, HTMLCleanerHandle, InputSourceHandle, InputStreamHandle, com.marklogic.client.impl.JacksonBaseHandle, JAXBHandle, JDOMHandle, OutputStreamHandle, QueryOptionsListHandle, ReaderHandle, RuleDefinition, RuleDefinitionList, SearchHandle, SourceHandle, StringHandle, TuplesHandle, URIHandle, ValuesHandle, ValuesListHandle, XMLEventReaderHandle, XMLStreamReaderHandlepublic abstract class BaseHandle<R,W>
extends com.marklogic.client.impl.HandleImplementation<R,W>
UNKNOWN_LENGTH| Constructor | Description |
|---|---|
BaseHandle() |
Zero-argument constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
long |
getByteLength() |
Returns the length of the content in bytes as returned by the server.
|
Format |
getFormat() |
Returns the format of the content.
|
java.lang.String |
getMimetype() |
Returns the mimetype of the content.
|
long |
getServerTimestamp() |
|
void |
setByteLength(long length) |
Specifies the length of the content in bytes or the UNKNOWN_LENGTH
constant if the length of the content is not known.
|
void |
setFormat(Format format) |
Specifies the format of the content as binary, JSON, text, or XML.
|
void |
setMimetype(java.lang.String mimetype) |
Specifies the mimetype of the content such as application/json,
text/plain, or application/xml.
|
void |
setServerTimestamp(long serverTimestamp) |
public Format getFormat()
ContentDescriptorpublic void setFormat(Format format)
ContentDescriptorformat - the format of the contentpublic java.lang.String getMimetype()
ContentDescriptorpublic void setMimetype(java.lang.String mimetype)
ContentDescriptormimetype - the content mimetypepublic long getServerTimestamp()
public void setServerTimestamp(long serverTimestamp)
public long getByteLength()
ContentDescriptorpublic void setByteLength(long length)
ContentDescriptorlength - the content length in bytesCopyright © 2013-2019 MarkLogic Corporation.