Class JsonWriter
java.lang.Object
org.frankframework.documentbuilder.json.JsonWriter
- All Implemented Interfaces:
JsonEventHandler
-
Constructor Summary
ConstructorDescriptionWhen the implicitStringWriter
is used, it's automatically closed on endDocument.JsonWriter
(Writer writer) When you supply aWriter
you will have to close it.JsonWriter
(Writer writer, boolean closeWriterOnEndDocument) -
Method Summary
Modifier and TypeMethodDescriptionvoid
endArray()
void
void
void
void
void
void
void
void
startObjectEntry
(String key) toString()
-
Constructor Details
-
JsonWriter
public JsonWriter()When the implicitStringWriter
is used, it's automatically closed on endDocument. -
JsonWriter
When you supply aWriter
you will have to close it. -
JsonWriter
-
-
Method Details
-
startDocument
public void startDocument()- Specified by:
startDocument
in interfaceJsonEventHandler
-
endDocument
- Specified by:
endDocument
in interfaceJsonEventHandler
- Throws:
SAXException
-
startObject
- Specified by:
startObject
in interfaceJsonEventHandler
- Throws:
SAXException
-
startObjectEntry
- Specified by:
startObjectEntry
in interfaceJsonEventHandler
- Throws:
SAXException
-
endObject
- Specified by:
endObject
in interfaceJsonEventHandler
- Throws:
SAXException
-
startArray
- Specified by:
startArray
in interfaceJsonEventHandler
- Throws:
SAXException
-
endArray
- Specified by:
endArray
in interfaceJsonEventHandler
- Throws:
SAXException
-
primitive
- Specified by:
primitive
in interfaceJsonEventHandler
- Throws:
SaxException
-
number
- Specified by:
number
in interfaceJsonEventHandler
- Throws:
SAXException
-
toString
-