Package com.jsoniter.extra
Class GsonCompatibilityMode
java.lang.Object
com.jsoniter.spi.EmptyExtension
com.jsoniter.spi.Config
com.jsoniter.extra.GsonCompatibilityMode
- All Implemented Interfaces:
Extension
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
GsonCompatibilityMode
(String configName, GsonCompatibilityMode.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionprotected GsonCompatibilityMode.Builder
builder()
createDecoder
(String cacheKey, Type type) Customize type decodingcreateEncoder
(String cacheKey, Type type) Customize type encodingprotected OmitValue
createOmitValue
(Type valueType) protected JsonIgnore
getJsonIgnore
(Annotation[] annotations) protected JsonProperty
getJsonProperty
(Annotation[] annotations) void
Update how binding is done for the classMethods inherited from class com.jsoniter.spi.Config
configName, copyBuilder, decodingMode, encodingMode, escapeUnicode, getAnnotation, getDecoderCacheKey, getEncoderCacheKey, getJsonCreator, getJsonUnwrapper, getJsonWrapper, indentionStep, omitDefaultValue
Methods inherited from class com.jsoniter.spi.EmptyExtension
canCreate, chooseImplementation, create
-
Field Details
-
SURR1_FIRST
private static final int SURR1_FIRST- See Also:
-
SURR1_LAST
private static final int SURR1_LAST- See Also:
-
SURR2_FIRST
private static final int SURR2_FIRST- See Also:
-
SURR2_LAST
private static final int SURR2_LAST- See Also:
-
REPLACEMENT_CHARS
-
HTML_SAFE_REPLACEMENT_CHARS
-
-
Constructor Details
-
GsonCompatibilityMode
-
-
Method Details
-
builder
-
createOmitValue
- Overrides:
createOmitValue
in classConfig
-
createEncoder
Description copied from interface:Extension
Customize type encoding- Specified by:
createEncoder
in interfaceExtension
- Overrides:
createEncoder
in classEmptyExtension
- Parameters:
cacheKey
- name of the encodertype
- change how to encode the type- Returns:
- null, if not special customization needed
-
createDecoder
Description copied from interface:Extension
Customize type decoding- Specified by:
createDecoder
in interfaceExtension
- Overrides:
createDecoder
in classEmptyExtension
- Parameters:
cacheKey
- name of the decodertype
- change how to decode the type- Returns:
- null, if no special customization needed
-
updateClassDescriptor
Description copied from interface:Extension
Update how binding is done for the class- Specified by:
updateClassDescriptor
in interfaceExtension
- Overrides:
updateClassDescriptor
in classConfig
- Parameters:
desc
- binding information
-
getJsonProperty
- Overrides:
getJsonProperty
in classConfig
-
getJsonIgnore
- Overrides:
getJsonIgnore
in classConfig
-