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
ConstructorsModifierConstructorDescriptionprivateGsonCompatibilityMode(String configName, GsonCompatibilityMode.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionprotected GsonCompatibilityMode.Builderbuilder()createDecoder(String cacheKey, Type type) Customize type decodingcreateEncoder(String cacheKey, Type type) Customize type encodingprotected OmitValuecreateOmitValue(Type valueType) protected JsonIgnoregetJsonIgnore(Annotation[] annotations) protected JsonPropertygetJsonProperty(Annotation[] annotations) voidUpdate how binding is done for the classMethods inherited from class Config
configName, copyBuilder, decodingMode, encodingMode, escapeUnicode, getAnnotation, getDecoderCacheKey, getEncoderCacheKey, getJsonCreator, getJsonUnwrapper, getJsonWrapper, indentionStep, omitDefaultValueMethods inherited from class 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:
createOmitValuein classConfig
-
createEncoder
Description copied from interface:ExtensionCustomize type encoding- Specified by:
createEncoderin interfaceExtension- Overrides:
createEncoderin 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:ExtensionCustomize type decoding- Specified by:
createDecoderin interfaceExtension- Overrides:
createDecoderin 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:ExtensionUpdate how binding is done for the class- Specified by:
updateClassDescriptorin interfaceExtension- Overrides:
updateClassDescriptorin classConfig- Parameters:
desc- binding information
-
getJsonProperty
- Overrides:
getJsonPropertyin classConfig
-
getJsonIgnore
- Overrides:
getJsonIgnorein classConfig
-