Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.ion

public Class IonWriteContext

extends JsonWriteContext
Class Inheritance
Imports
com.fasterxml.jackson.core.json.DupDetector, .JsonWriteContext

Extension of JsonWriteContexts that recognizes sexps

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.

Field Summary

Modifier and TypeField and Description
public static final int
protected static final int
Inherited from com.fasterxml.jackson.core.json.JsonWriteContext:
_child_currentName_currentValue_dups_gotName_parentSTATUS_EXPECT_NAMESTATUS_EXPECT_VALUESTATUS_OK_AFTER_COLONSTATUS_OK_AFTER_COMMASTATUS_OK_AFTER_SPACESTATUS_OK_AS_IS

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public IonWriteContext
public IonWriteContext
public IonWriteContext
public static IonWriteContext
public final boolean
public int
Inherited from com.fasterxml.jackson.core.json.JsonWriteContext:
clearAndGetParentcreateChildArrayContextcreateChildObjectContextcreateRootContextgetCurrentNamegetCurrentValuegetDupDetectorgetParenthasCurrentNameresetresetsetCurrentValuewithDupDetectorwriteFieldName

Field Detail

STATUS_OK_AFTER_SEXP_SEPARATORback to summary
public static final int STATUS_OK_AFTER_SEXP_SEPARATOR
TYPE_SEXPback to summary
protected static final int TYPE_SEXP

Constructor Detail

IonWriteContextback to summary
protected IonWriteContext(int type, IonWriteContext parent, DupDetector dups)

Method Detail

createChildArrayContextback to summary
public IonWriteContext createChildArrayContext()

Overrides com.fasterxml.jackson.core.json.JsonWriteContext.createChildArrayContext.

Annotations
@Override
createChildObjectContextback to summary
public IonWriteContext createChildObjectContext()

Overrides com.fasterxml.jackson.core.json.JsonWriteContext.createChildObjectContext.

Annotations
@Override
createChildSexpContextback to summary
public IonWriteContext createChildSexpContext()
createRootContextback to summary
public static IonWriteContext createRootContext(DupDetector dd)

Hides com.fasterxml.jackson.core.json.JsonWriteContext.createRootContext.

inSexpback to summary
public final boolean inSexp()
writeValueback to summary
public int writeValue()

Overrides com.fasterxml.jackson.core.json.JsonWriteContext.writeValue.

Annotations
@Override