JsonGenerator for given format
(or in case of buffering, original format) has.
Used in some cases to adjust aspects of things like content conversions and
coercions by format-agnostic functionality.
Specific or expected usage documented by individual capability entry Javadocs.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | _defaultState
Whether feature is enabled or disabled by default. |
| private final int | |
| public static final StreamWriteCapability | CAN_WRITE_BINARY_NATIVELY
Capability that indicates that the data format is able to express binary data natively, without using textual encoding like Base64. |
| public static final StreamWriteCapability | CAN_WRITE_FORMATTED_NUMBERS
Capability that indicates that the data format is able to write "formatted numbers": that is, output of numbers is done as Strings and caller is allowed to pass in logical number values as Strings. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | enabledByDefault()
Implements com. Accessor for checking whether this feature is enabled by default. |
| public boolean | enabledIn(int
Bit field that contains a set of enabled features of this type flags)Implements com. Convenience method for checking whether feature is enabled in given bitmask. |
| public int | getMask()
Implements com. Returns bit mask for this feature instance; must be a single bit,
that is of form |
| public static StreamWriteCapability | |
| public static StreamWriteCapability[] |
| _defaultState | back to summary |
|---|---|
| private final boolean _defaultState Whether feature is enabled or disabled by default. | |
| _mask | back to summary |
|---|---|
| private final int _mask | |
| CAN_WRITE_BINARY_NATIVELY | back to summary |
|---|---|
| public static final StreamWriteCapability CAN_WRITE_BINARY_NATIVELY Capability that indicates that the data format is able to express binary data natively, without using textual encoding like Base64. Capability is currently enabled for all binary formats and none of textual formats. | |
| CAN_WRITE_FORMATTED_NUMBERS | back to summary |
|---|---|
| public static final StreamWriteCapability CAN_WRITE_FORMATTED_NUMBERS Capability that indicates that the data format is able to write "formatted numbers": that is, output of numbers is done as Strings and caller is allowed to pass in logical number values as Strings. Capability is currently enabled for most textual formats and none of binary formats. | |
| StreamWriteCapability | back to summary |
|---|---|
| private StreamWriteCapability(boolean defaultState) | |
| enabledByDefault | back to summary |
|---|---|
| public boolean enabledByDefault() Implements com. Doc from com. Accessor for checking whether this feature is enabled by default.
| |
| enabledIn | back to summary |
|---|---|
| public boolean enabledIn(int flags) Implements com. Doc from com. Convenience method for checking whether feature is enabled in given bitmask.
| |
| getMask | back to summary |
|---|---|
| public int getMask() Implements com. Doc from com. Returns bit mask for this feature instance; must be a single bit,
that is of form
| |
| valueOf | back to summary |
|---|---|
| public static StreamWriteCapability valueOf(String name) | |
| values | back to summary |
|---|---|
| public static StreamWriteCapability[] values() | |