com.fasterxml.jackson.core.TSFBuilder
implementation for constructing vanilla JsonFactory
instances for reading/writing JSON encoded content.Note
as of Jackson 2.x, use of JSON-specific builder is bit cumbersome
since JsonFactory serves dual duty of base class AND actual
implementation for JSON backend. This will be fixed in Jackson 3.0.
| Modifier and Type | Field and Description |
|---|---|
| protected CharacterEscapes | |
| protected int | |
| protected char | _quoteChar
Character used for quoting field names (if field name quoting has not
been disabled with |
| protected SerializableString |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonFactory | build()
Implements abstract com. TokenStreamFactory instance, given
configuration.
|
| public JsonFactoryBuilder | Returns: This builder instance (to allow call chaining)CharacterEscapes to configure, if any; esc)null if noneMethod for defining custom escapes factory uses for |
| public CharacterEscapes | |
| public JsonFactoryBuilder | configure(JsonReadFeature f, boolean state)
|
| public JsonFactoryBuilder | configure(JsonWriteFeature f, boolean state)
|
| public JsonFactoryBuilder | |
| public JsonFactoryBuilder | disable(JsonReadFeature first, JsonReadFeature... other)
|
| public JsonFactoryBuilder | |
| public JsonFactoryBuilder | disable(JsonWriteFeature first, JsonWriteFeature... other)
|
| public JsonFactoryBuilder | |
| public JsonFactoryBuilder | enable(JsonReadFeature first, JsonReadFeature... other)
Overrides com. |
| public JsonFactoryBuilder | |
| public JsonFactoryBuilder | enable(JsonWriteFeature first, JsonWriteFeature... other)
Overrides com. |
| public JsonFactoryBuilder | Returns: This builder instance (to allow call chaining)Highest character code that is NOT automatically escaped; if
positive value above 0, or 0 to indicate that no automatic escaping is applied
beside from what JSON specification requires (and possible custom escape settings).
Values between 1 and 127 are all taken to behave as if 127 is specified: that is,
no automatic escaping is applied in ASCII range. maxNonEscaped)Method that allows specifying threshold beyond which all characters are
automatically escaped (without checking possible custom escaping settings
a la |
| public int | |
| public JsonFactoryBuilder | Returns: This builder instance (to allow call chaining)Character to use for quoting field names and JSON String values. ch)Method that allows specifying an alternate
character used for quoting field names (if field name quoting has not
been disabled with |
| public char | |
| public JsonFactoryBuilder | Returns: This builder instance (to allow call chaining)Separator to use, if any; null means that no separator is
automatically added sep)Method that allows overriding String used for separating root-level JSON values (default is single space character) |
| public JsonFactoryBuilder | Returns: This builder instance (to allow call chaining)Separator to use, if any; null means that no separator is
automatically added sep)Method that allows overriding String used for separating root-level JSON values (default is single space character) |
| public SerializableString |
| _characterEscapes | back to summary |
|---|---|
| protected CharacterEscapes _characterEscapes | |
| _maximumNonEscapedChar | back to summary |
|---|---|
| protected int _maximumNonEscapedChar | |
| _quoteChar | back to summary |
|---|---|
| protected char _quoteChar Character used for quoting field names (if field name quoting has not
been disabled with | |
| _rootValueSeparator | back to summary |
|---|---|
| protected SerializableString _rootValueSeparator | |
| JsonFactoryBuilder | back to summary |
|---|---|
| public JsonFactoryBuilder() | |
| JsonFactoryBuilder | back to summary |
|---|---|
| public JsonFactoryBuilder(JsonFactory base) | |
| build | back to summary |
|---|---|
| public JsonFactory build() Implements abstract com. Doc from com. Method for constructing actual
| |
| characterEscapes | back to summary |
|---|---|
| public JsonFactoryBuilder characterEscapes(CharacterEscapes esc) Method for defining custom escapes factory uses for
| |
| characterEscapes | back to summary |
|---|---|
| public CharacterEscapes characterEscapes() | |
| configure | back to summary |
|---|---|
| public JsonFactoryBuilder configure(JsonReadFeature f, boolean state) Overrides com.
| |
| configure | back to summary |
|---|---|
| public JsonFactoryBuilder configure(JsonWriteFeature f, boolean state) Overrides com.
| |
| disable | back to summary |
|---|---|
| public JsonFactoryBuilder disable(JsonReadFeature f) Overrides com.
| |
| disable | back to summary |
|---|---|
| public JsonFactoryBuilder disable(JsonReadFeature first, JsonReadFeature... other) Overrides com.
| |
| disable | back to summary |
|---|---|
| public JsonFactoryBuilder disable(JsonWriteFeature f) Overrides com.
| |
| disable | back to summary |
|---|---|
| public JsonFactoryBuilder disable(JsonWriteFeature first, JsonWriteFeature... other) Overrides com.
| |
| enable | back to summary |
|---|---|
| public JsonFactoryBuilder enable(JsonReadFeature f) Overrides com.
| |
| enable | back to summary |
|---|---|
| public JsonFactoryBuilder enable(JsonReadFeature first, JsonReadFeature... other) Overrides com.
| |
| enable | back to summary |
|---|---|
| public JsonFactoryBuilder enable(JsonWriteFeature f) Overrides com.
| |
| enable | back to summary |
|---|---|
| public JsonFactoryBuilder enable(JsonWriteFeature first, JsonWriteFeature... other) Overrides com.
| |
| highestNonEscapedChar | back to summary |
|---|---|
| public JsonFactoryBuilder highestNonEscapedChar(int maxNonEscaped) Method that allows specifying threshold beyond which all characters are
automatically escaped (without checking possible custom escaping settings
a la Note Lowest legal value (aside from marker 0) is 127: for ASCII range, other checks apply and this threshold is ignored. If value between [1, 126] is specified, 127 will be used instead.
| |
| highestNonEscapedChar | back to summary |
|---|---|
| public int highestNonEscapedChar() | |
| quoteChar | back to summary |
|---|---|
| public JsonFactoryBuilder quoteChar(char ch) Method that allows specifying an alternate
character used for quoting field names (if field name quoting has not
been disabled with
Default value is double-quote (
| |
| quoteChar | back to summary |
|---|---|
| public char quoteChar() | |
| rootValueSeparator | back to summary |
|---|---|
| public JsonFactoryBuilder rootValueSeparator(String sep) Method that allows overriding String used for separating root-level JSON values (default is single space character)
| |
| rootValueSeparator | back to summary |
|---|---|
| public JsonFactoryBuilder rootValueSeparator(SerializableString sep) Method that allows overriding String used for separating root-level JSON values (default is single space character)
| |
| rootValueSeparator | back to summary |
|---|---|
| public SerializableString rootValueSeparator() | |