DocumentDescriptor
, DocumentUriTemplate
, TemporalDescriptor
BaseHandle
, BytesHandle
, DocumentMetadataHandle
, DOM4JHandle
, DOMHandle
, FileHandle
, GSONHandle
, com.marklogic.client.impl.HandleImplementation
, HTMLCleanerHandle
, InputSourceHandle
, InputStreamHandle
, com.marklogic.client.impl.JacksonBaseHandle
, JacksonDatabindHandle
, JacksonHandle
, JacksonParserHandle
, JAXBHandle
, JDOMHandle
, OutputStreamHandle
, QueryOptionsListHandle
, ReaderHandle
, RuleDefinition
, RuleDefinitionList
, SearchHandle
, SourceHandle
, StringHandle
, TuplesHandle
, URIHandle
, ValuesHandle
, ValuesListHandle
, XMLEventReaderHandle
, XMLStreamReaderHandle
public interface ContentDescriptor
Modifier and Type | Field | Description |
---|---|---|
static long |
UNKNOWN_LENGTH |
Indicates that the length of the content is not known.
|
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.
|
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.
|
static final long UNKNOWN_LENGTH
Format getFormat()
void setFormat(Format format)
format
- the format of the contentjava.lang.String getMimetype()
void setMimetype(java.lang.String mimetype)
mimetype
- the content mimetypelong getByteLength()
void setByteLength(long length)
length
- the content length in bytesCopyright © 2013-2019 MarkLogic Corporation.