public final class AppendingJavaTextJsonHandler extends AbstractAppendingJavaTextJsonHandler<Appendable,Void>
AppendingJavaTextJsonHandler is a
AbstractAppendingJsonTextJsonHandler that appends the handled JSON
document as a pretty JSON text to a given Appendable and calculates
no result.| Constructor and Description |
|---|
AppendingJavaTextJsonHandler(Appendable appendable)
|
AppendingJavaTextJsonHandler(Appendable appendable,
Indentation indentation)
Creates a new
AppendingJavaTextJsonHandler. |
| Modifier and Type | Method and Description |
|---|---|
Void |
getResult()
Returns the calculated result.
|
getAppendable, onArrayBegin, onArrayEnd, onBoolean, onDocumentBegin, onDocumentEnd, onDouble, onLong, onName, onNext, onNull, onObjectBegin, onObjectEnd, onStringcheckDouble, checkName, checkStringpublic AppendingJavaTextJsonHandler(Appendable appendable)
appendable - The Appendable to be used.public AppendingJavaTextJsonHandler(Appendable appendable, Indentation indentation)
AppendingJavaTextJsonHandler.appendable - The Appendable to be used.indentation - The Indentation to be used.public Void getResult() throws JsonException
JsonHandler
Implementers should catch any exception that isn't a
JsonException and wrap them in an appropriate
JsonException (e.g. a JsonHandlingException).
getResult in interface JsonHandler<Void>getResult in class IdleJsonHandler<Void>JsonException - If the handling failed.Copyright © 2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.