public interface ContentDescriptor
Modifier and Type | Field and Description |
---|---|
static long |
UNKNOWN_LENGTH
Indicates that the length of the content is not known.
|
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.
|
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-2020 MarkLogic Corporation.