public abstract class BaseHandle<R,W>extends com.marklogic.client.impl.HandleImplementation<R,W>
BaseHandle is the base class for content
representations such as byte arrays, strings, input streams,
character readers, files, POJO (Plain Old Java Object) structures
and so on. Content representations are used for query options,
search results, values results, document metadata, and documents in
binary, JSON, text, and XML formats. Read handles receive content
from the server and must implement the receiveAs() and
receiveContent() methods. Write handles send content to the server,
must implement the sendContent() method, and should initialize the
setResendable() accessor. A handle can support both read and write
operations.
Field Summary
Fields inherited from
interface com.marklogic.client.document.ContentDescriptor
Returns the length of the content in bytes as
returned by the server. This value is usually not set when reading
from a local source (such as a file or an input stream). The byte
length won't be returned by the server for very large documents for
performance reasons. The byte length can be larger than the
character length if the content contains multi-byte
characters.