Package org.frankframework.mongodb
Class StrictJsonDocumentWriter
java.lang.Object
org.frankframework.mongodb.StrictJsonDocumentWriter
- All Implemented Interfaces:
org.bson.json.StrictJsonWriter
StrictJsonWriter to write to FF DocumentBuilder, to generate JSON or XML.
Based on org.bson.json.StrictCharacterStreamJsonWriter.
- Author:
- Gerrit van Brakel
-
Constructor Summary
ConstructorsConstructorDescriptionStrictJsonDocumentWriter(INodeBuilder nodeBuilder, org.bson.json.StrictCharacterStreamJsonWriterSettings settings) Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionintGets the current length of the JSON text.booleanReturn true if the output has been truncated due to exceeding the length specified inStrictCharacterStreamJsonWriterSettings.getMaxLength().voidwriteBoolean(boolean value) voidwriteBoolean(String name, boolean value) voidvoidvoidvoidvoidvoidwriteNumber(String value) voidwriteNumber(String name, String value) voidvoidvoidvoidwriteStartArray(String name) voidvoidwriteStartObject(String name) voidwriteString(String value) voidwriteString(String name, String value)
-
Constructor Details
-
StrictJsonDocumentWriter
public StrictJsonDocumentWriter(INodeBuilder nodeBuilder, org.bson.json.StrictCharacterStreamJsonWriterSettings settings) Construct an instance.- Parameters:
nodeBuilder- the handler to write JSON to.settings- the settings to apply to this writer.
-
-
Method Details
-
getCurrentLength
public int getCurrentLength()Gets the current length of the JSON text.- Returns:
- the current length of the JSON text
-
writeName
- Specified by:
writeNamein interfaceorg.bson.json.StrictJsonWriter
-
writeStartObject
public void writeStartObject()- Specified by:
writeStartObjectin interfaceorg.bson.json.StrictJsonWriter
-
writeStartObject
- Specified by:
writeStartObjectin interfaceorg.bson.json.StrictJsonWriter
-
writeEndObject
public void writeEndObject()- Specified by:
writeEndObjectin interfaceorg.bson.json.StrictJsonWriter
-
writeStartArray
public void writeStartArray()- Specified by:
writeStartArrayin interfaceorg.bson.json.StrictJsonWriter
-
writeStartArray
- Specified by:
writeStartArrayin interfaceorg.bson.json.StrictJsonWriter
-
writeEndArray
public void writeEndArray()- Specified by:
writeEndArrayin interfaceorg.bson.json.StrictJsonWriter
-
writeBoolean
public void writeBoolean(boolean value) - Specified by:
writeBooleanin interfaceorg.bson.json.StrictJsonWriter
-
writeBoolean
- Specified by:
writeBooleanin interfaceorg.bson.json.StrictJsonWriter
-
writeNumber
- Specified by:
writeNumberin interfaceorg.bson.json.StrictJsonWriter
-
writeNumber
- Specified by:
writeNumberin interfaceorg.bson.json.StrictJsonWriter
-
writeString
- Specified by:
writeStringin interfaceorg.bson.json.StrictJsonWriter
-
writeString
- Specified by:
writeStringin interfaceorg.bson.json.StrictJsonWriter
-
writeRaw
- Specified by:
writeRawin interfaceorg.bson.json.StrictJsonWriter
-
writeRaw
- Specified by:
writeRawin interfaceorg.bson.json.StrictJsonWriter
-
writeNull
public void writeNull()- Specified by:
writeNullin interfaceorg.bson.json.StrictJsonWriter
-
writeNull
- Specified by:
writeNullin interfaceorg.bson.json.StrictJsonWriter
-
isTruncated
public boolean isTruncated()Return true if the output has been truncated due to exceeding the length specified inStrictCharacterStreamJsonWriterSettings.getMaxLength().- Specified by:
isTruncatedin interfaceorg.bson.json.StrictJsonWriter- Returns:
- true if the output has been truncated
- Since:
- 3.7
- See Also:
-