ContentDescriptor,
AbstractReadHandle,
AbstractWriteHandle,
BufferableContentHandle<com.fasterxml.jackson.core.JsonParser, InputStream>, BufferableHandle,
ContentHandle<com.fasterxml.jackson.core.JsonParser>,
CtsQueryWriteHandle,
DocumentMetadataReadHandle,
DocumentMetadataWriteHandle,
DocumentPatchHandle,
JSONReadHandle,
JSONWriteHandle,
QueryOptionsListReadHandle,
QueryOptionsReadHandle,
QueryOptionsWriteHandle,
RuleListReadHandle,
RuleReadHandle,
RuleWriteHandle,
SearchReadHandle,
SPARQLResultsReadHandle,
StreamingContentHandle<com.fasterxml.jackson.core.JsonParser, InputStream>, StructureReadHandle,
StructureWriteHandle,
TriplesReadHandle,
TriplesWriteHandle,
TuplesReadHandle,
ValuesListReadHandle,
ValuesReadHandle,
OutputStreamSender,
Closeable, AutoCloseableAn adapter for using the streaming capabilities of the Jackson Open Source library. Enables low-level efficient reading and writing of JSON documents.
Always call close() when
finished with this handle to release the resources.
UNKNOWN_LENGTHvoidclose()com.fasterxml.jackson.core.JsonParserget()Class<com.fasterxml.jackson.core.JsonParser>com.fasterxml.jackson.databind.ObjectMapperprotected booleancom.fasterxml.jackson.core.JsonParser[]newArray (int length)static ContentHandleFactorynewHandleArray (int length)protected voidreceiveContent (InputStream content)protected OutputStreamSenderprotected OutputStreamSendersendContent (com.fasterxml.jackson.core.JsonParser parser)voidset (com.fasterxml.jackson.core.JsonParser parser)voidsetMapper (com.fasterxml.jackson.databind.ObjectMapper mapper)com.fasterxml.jackson.core.JsonParsertoContent (InputStream serialization)with (com.fasterxml.jackson.core.JsonParser parser)withFormat (Format format)withMimetype (String mimetype)voidwrite (OutputStream out)bytesToContent, contentToBytes, fromBuffer, receiveAs,
toBuffer, toStringgetByteLength,
getFormat, getMimetype, getServerTimestamp,
setByteLength,
setFormat,
setMimetype,
setServerTimestampgetPointInTimeQueryTimestamp, isResendable,
setPointInTimeQueryTimestamp, setResendable,
setResponseServerTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbytesToContent,
contentToBytes,
newHandle,
resendableHandleForfromBuffer,
toBufferresendableHandleForformat - the format of the contentmimetype - the mime type of the contentget in
interface ContentHandle<com.fasterxml.jackson.core.JsonParser>get in
class com.marklogic.client.impl.JacksonBaseHandle<com.fasterxml.jackson.core.JsonParser>set in
interface ContentHandle<com.fasterxml.jackson.core.JsonParser>set in
class com.marklogic.client.impl.JacksonBaseHandle<com.fasterxml.jackson.core.JsonParser>parser - the JsonParser over the content to be
writtenparser - the JsonParser over the content to be
writtenContentHandlegetContentClass in
interface ContentHandle<com.fasterxml.jackson.core.JsonParser>ContentHandlenewHandle in
interface BufferableContentHandle<com.fasterxml.jackson.core.JsonParser, InputStream>newHandle in
interface ContentHandle<com.fasterxml.jackson.core.JsonParser>BufferableContentHandlenewHandleArray in
interface BufferableContentHandle<com.fasterxml.jackson.core.JsonParser, InputStream>length - the number of positions in the arrayContentHandlenewArray in
interface ContentHandle<com.fasterxml.jackson.core.JsonParser>length - the size of the array (zero or more)getMapper in
class com.marklogic.client.impl.JacksonBaseHandle<com.fasterxml.jackson.core.JsonParser>
ObjectMapper mapper = new CsvMapper();
mapper.configure(JsonGenerator.Feature.AUTO_CLOSE_TARGET, false);
mapper.configure(JsonParser.Feature.AUTO_CLOSE_SOURCE, false);
handle.setMapper(mapper);
Use at your own risk! Note that you most likely want to set to
false the two options we demonstrate above
(JsonGenerator.Feature.AUTO_CLOSE_TARGET and
JsonParser.Feature.AUTO_CLOSE_SOURCE) as we do so your mapper will
not close streams which we may need to reuse if we have to resend a
network request.setMapper in
class com.marklogic.client.impl.JacksonBaseHandle<com.fasterxml.jackson.core.JsonParser>sendContent in
class com.marklogic.client.impl.HandleImplementation<InputStream, OutputStreamSender>sendContent in
class com.marklogic.client.impl.JacksonBaseHandle<com.fasterxml.jackson.core.JsonParser>receiveContent in
class com.marklogic.client.impl.HandleImplementation<InputStream, OutputStreamSender>hasContent in
class com.marklogic.client.impl.JacksonBaseHandle<com.fasterxml.jackson.core.JsonParser>OutputStreamSenderwrite in
interface OutputStreamSenderout - the output stream receiving the contentIOException - if io problems ariseBufferableContentHandletoContent in
interface BufferableContentHandle<com.fasterxml.jackson.core.JsonParser, InputStream>toContent in
class com.marklogic.client.impl.JacksonBaseHandle<com.fasterxml.jackson.core.JsonParser>serialization - a serialization of the
contentclose in
interface AutoCloseableclose in
interface CloseableCopyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.