Package one.nio.serial
Class MethodSerializer<T>
java.lang.Object
one.nio.serial.Serializer<T>
one.nio.serial.MethodSerializer<T>
- All Implemented Interfaces:
Externalizable,Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class one.nio.serial.Serializer
cls, descriptor, origin, uid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcSize(T obj, CalcSizeStream css) fromJson(JsonReader in) method()read(DataStream in) voidvoidskip(DataStream in) voidvoidtoJson(StringBuilder sb) voidtoJson(T obj, StringBuilder builder) toString()voidwrite(T obj, DataStream out) voidMethods inherited from class one.nio.serial.Serializer
cls, code, deserialize, equals, fromString, generateUid, hashCode, persist, serialize, sizeOf, uid, uniqueName
-
Field Details
-
method
-
argCount
protected int argCount
-
-
Constructor Details
-
MethodSerializer
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSerializer<T>- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-
skipExternal
- Overrides:
skipExternalin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-
toJson
- Overrides:
toJsonin classSerializer<T>
-
toString
- Overrides:
toStringin classSerializer<T>
-
method
-
calcSize
- Specified by:
calcSizein classSerializer<T>- Throws:
IOException
-
write
- Specified by:
writein classSerializer<T>- Throws:
IOException
-
read
- Specified by:
readin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-
skip
- Specified by:
skipin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-
toJson
- Specified by:
toJsonin classSerializer<T>- Throws:
IOException
-
fromJson
- Specified by:
fromJsonin classSerializer<T>- Throws:
IOExceptionClassNotFoundException
-