Package one.nio.serial
Class MapSerializer
- java.lang.Object
-
- one.nio.serial.Serializer<Map>
-
- one.nio.serial.MapSerializer
-
- All Implemented Interfaces:
Externalizable,Serializable
public class MapSerializer extends Serializer<Map>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class one.nio.serial.Serializer
cls, descriptor, origin, uid
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalcSize(Map obj, CalcSizeStream css)MapfromJson(JsonReader in)Mapread(DataStream in)voidreadExternal(ObjectInput in)voidskip(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
-
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSerializer<Map>- Throws:
IOExceptionClassNotFoundException
-
calcSize
public void calcSize(Map obj, CalcSizeStream css) throws IOException
- Specified by:
calcSizein classSerializer<Map>- Throws:
IOException
-
write
public void write(Map obj, DataStream out) throws IOException
- Specified by:
writein classSerializer<Map>- Throws:
IOException
-
read
public Map read(DataStream in) throws IOException, ClassNotFoundException
- Specified by:
readin classSerializer<Map>- Throws:
IOExceptionClassNotFoundException
-
skip
public void skip(DataStream in) throws IOException, ClassNotFoundException
- Specified by:
skipin classSerializer<Map>- Throws:
IOExceptionClassNotFoundException
-
toJson
public void toJson(Map obj, StringBuilder builder) throws IOException
- Specified by:
toJsonin classSerializer<Map>- Throws:
IOException
-
fromJson
public Map fromJson(JsonReader in) throws IOException, ClassNotFoundException
- Specified by:
fromJsonin classSerializer<Map>- Throws:
IOExceptionClassNotFoundException
-
-