Class BaseHandle<R,W>

java.lang.Object
com.marklogic.client.impl.HandleImplementation<R,W>
com.marklogic.client.io.BaseHandle<R,W>
Type Parameters:
R - a read handle or OperationNotSupported in the com.marklogic.client.io.marker package
W - a write handle or OperationNotSupported in the com.marklogic.client.io.marker package
All Implemented Interfaces:
ContentDescriptor
Direct Known Subclasses:
BytesHandle, DocumentMetadataHandle, DOM4JHandle, DOMHandle, FileHandle, GSONHandle, InputSourceHandle, InputStreamHandle, com.marklogic.client.impl.JacksonBaseHandle, JAXBHandle, JDOMHandle, OutputStreamHandle, QueryOptionsListHandle, ReaderHandle, RuleDefinition, RuleDefinitionList, SearchHandle, SourceHandle, StringHandle, TuplesHandle, ValuesHandle, ValuesListHandle, XMLEventReaderHandle, XMLStreamReaderHandle

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.