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 packagepublic abstract class BaseHandle<R,W>
extends com.marklogic.client.impl.HandleImplementation<R,W>
UNKNOWN_LENGTH
Constructor and Description |
---|
BaseHandle()
Zero-argument constructor.
|
Modifier and Type | Method and 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()
ContentDescriptor
public void setFormat(Format format)
ContentDescriptor
format
- the format of the contentpublic java.lang.String getMimetype()
ContentDescriptor
public void setMimetype(java.lang.String mimetype)
ContentDescriptor
mimetype
- the content mimetypepublic long getServerTimestamp()
public void setServerTimestamp(long serverTimestamp)
public long getByteLength()
ContentDescriptor
public void setByteLength(long length)
ContentDescriptor
length
- the content length in bytesCopyright © 2013-2020 MarkLogic Corporation.