Modifier and Type | Field and Description |
---|---|
protected CollectionBuilder |
_collectionBuilder |
protected com.fasterxml.jackson.jr.ob.JSON.ExtContextImpl |
_extContext |
protected int |
_features |
protected MapBuilder |
_mapBuilder |
protected PrettyPrinter |
_prettyPrinter |
protected JSONReader |
_reader |
protected JsonFactory |
_streamFactory |
protected TreeCodec |
_treeCodec |
protected JSONWriter |
_writer |
Constructor and Description |
---|
Builder(JsonFactory f) |
protected int _features
protected PrettyPrinter _prettyPrinter
protected final JsonFactory _streamFactory
protected TreeCodec _treeCodec
protected JSONReader _reader
protected JSONWriter _writer
protected MapBuilder _mapBuilder
protected CollectionBuilder _collectionBuilder
protected com.fasterxml.jackson.jr.ob.JSON.ExtContextImpl _extContext
public Builder(JsonFactory f)
public JSON build()
public JSON.Builder register(JacksonJrExtension extension)
JSON
this builder builds.extension
- Extension to registerpublic JSON.Builder set(JSON.Feature feature, boolean state)
public JSON.Builder enable(JSON.Feature... features)
JSON
to be built.features
- Features to enablepublic JSON.Builder disable(JSON.Feature... features)
JSON
to be built.features
- Features to disablepublic JSON.Builder prettyPrinter(PrettyPrinter pp)
PrettyPrinter
JSON
to be built
should use on serialization.pp
- Pretty printer to usepublic JSON.Builder treeCodec(TreeCodec tc)
TreeCodec
JSON
to be built
should use for reading and writing TreeNode
values.
Note: by default no TreeCodec
is configured.
tc
- TreeCodec to usepublic JSON.Builder jsonReader(JSONReader r)
public JSON.Builder jsonWriter(JSONWriter w)
public JSON.Builder collectionBuilder(CollectionBuilder b)
public JSON.Builder mapBuilder(MapBuilder b)
public boolean isEnabled(JSON.Feature f)
public int featureMask()
public PrettyPrinter prettyPrinter()
public JsonFactory streamFactory()
public TreeCodec treeCodec()
public ReaderWriterModifier readerWriterModifier()
public ReaderWriterProvider readerWriterProvider()
public JSONReader jsonReader()
public JSONWriter jsonWriter()
public MapBuilder mapBuilder()
public CollectionBuilder collectionBuilder()
Copyright © 2023 FasterXML. All rights reserved.