Package one.nio.serial
Class MapSerializer
- All Implemented Interfaces:
Externalizable,Serializable
- Direct Known Subclasses:
HashMapSerializer
- See Also:
-
Field Summary
FieldsFields inherited from class one.nio.serial.Serializer
cls, descriptor, origin, uid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcSize(Map obj, CalcSizeStream css) private MethodHandlefromJson(JsonReader in) (package private) static booleanisValidType(Class<?> type) read(DataStream in) voidvoidskip(DataStream in) voidtoJson(Map obj, StringBuilder builder) voidwrite(Map obj, DataStream out) Methods inherited from class one.nio.serial.Serializer
cls, code, deserialize, equals, fromString, generateUid, hashCode, persist, serialize, sizeOf, skipExternal, toJson, toString, uid, uniqueName, writeExternal
-
Field Details
-
constructor
-
-
Constructor Details
-
MapSerializer
MapSerializer(Class cls)
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSerializer<Map>- Throws:
IOExceptionClassNotFoundException
-
calcSize
- Specified by:
calcSizein classSerializer<Map>- Throws:
IOException
-
write
- Specified by:
writein classSerializer<Map>- Throws:
IOException
-
read
- Specified by:
readin classSerializer<Map>- Throws:
IOExceptionClassNotFoundException
-
skip
- Specified by:
skipin classSerializer<Map>- Throws:
IOExceptionClassNotFoundException
-
toJson
- Specified by:
toJsonin classSerializer<Map>- Throws:
IOException
-
fromJson
- Specified by:
fromJsonin classSerializer<Map>- Throws:
IOExceptionClassNotFoundException
-
findConstructor
-
isValidType
-