public class IonWriteContext
extends com.fasterxml.jackson.core.json.JsonWriteContext
The JsonWriteContext is used by the pretty printer for handling of the whitespace between tokens, and by the generator for verifying whether it's valid to write a given token. The writeStartSexp method in the IonGenerator will enter a "sexp context", so we need a new state in the write context to track that. Sexp handling is modeled after arrays.
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_OK_AFTER_SEXP_SEPARATOR |
protected static int |
TYPE_SEXP |
Modifier | Constructor and Description |
---|---|
protected |
IonWriteContext(int type,
IonWriteContext parent,
com.fasterxml.jackson.core.json.DupDetector dups) |
Modifier and Type | Method and Description |
---|---|
IonWriteContext |
createChildArrayContext() |
IonWriteContext |
createChildObjectContext() |
IonWriteContext |
createChildSexpContext() |
static IonWriteContext |
createRootContext(com.fasterxml.jackson.core.json.DupDetector dd) |
boolean |
inSexp() |
int |
writeValue() |
clearAndGetParent, createChildArrayContext, createChildObjectContext, createRootContext, getCurrentName, getCurrentValue, getDupDetector, getParent, hasCurrentName, reset, reset, setCurrentValue, withDupDetector, writeFieldName
protected static final int TYPE_SEXP
public static final int STATUS_OK_AFTER_SEXP_SEPARATOR
protected IonWriteContext(int type, IonWriteContext parent, com.fasterxml.jackson.core.json.DupDetector dups)
public static IonWriteContext createRootContext(com.fasterxml.jackson.core.json.DupDetector dd)
public IonWriteContext createChildSexpContext()
public final boolean inSexp()
public IonWriteContext createChildArrayContext()
createChildArrayContext
in class com.fasterxml.jackson.core.json.JsonWriteContext
public IonWriteContext createChildObjectContext()
createChildObjectContext
in class com.fasterxml.jackson.core.json.JsonWriteContext
public int writeValue()
writeValue
in class com.fasterxml.jackson.core.json.JsonWriteContext
Copyright © 2022 FasterXML. All rights reserved.