Class JsonWriter
java.lang.Object
org.frankframework.documentbuilder.json.JsonWriter
- All Implemented Interfaces:
JsonEventHandler
-
Constructor Summary
ConstructorsConstructorDescriptionJsonWriter(Writer writer) When you supply aWriteryou will have to close it.JsonWriter(Writer writer, boolean closeWriterOnEndDocument) -
Method Summary
Modifier and TypeMethodDescriptionvoidendArray()voidvoidvoidhandles a string value as numeric (i.e without quotes in JSON)voidMust be able to handle String, long, BigDecimal, boolean, Date and nullvoidvoidvoidvoidstartObjectEntry(String key) toString()
-
Constructor Details
-
JsonWriter
When you supply aWriteryou will have to close it. -
JsonWriter
-
-
Method Details
-
startDocument
public void startDocument()- Specified by:
startDocumentin interfaceJsonEventHandler
-
endDocument
- Specified by:
endDocumentin interfaceJsonEventHandler- Throws:
SAXException
-
startObject
- Specified by:
startObjectin interfaceJsonEventHandler- Throws:
SAXException
-
startObjectEntry
- Specified by:
startObjectEntryin interfaceJsonEventHandler- Throws:
SAXException
-
endObject
- Specified by:
endObjectin interfaceJsonEventHandler- Throws:
SAXException
-
startArray
- Specified by:
startArrayin interfaceJsonEventHandler- Throws:
SAXException
-
endArray
- Specified by:
endArrayin interfaceJsonEventHandler- Throws:
SAXException
-
primitive
Description copied from interface:JsonEventHandlerMust be able to handle String, long, BigDecimal, boolean, Date and null- Specified by:
primitivein interfaceJsonEventHandler- Throws:
SaxException
-
number
Description copied from interface:JsonEventHandlerhandles a string value as numeric (i.e without quotes in JSON)- Specified by:
numberin interfaceJsonEventHandler- Throws:
SAXException
-
toString
-