Class ProtoDataCodec
java.lang.Object
com.iohao.net.framework.core.codec.ProtoDataCodec
- All Implemented Interfaces:
DataCodec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the human-readable name of this codec.<T> TDecode a byte array into an object of the specified type.byte[]encode(boolean data) Encode a boolean value using cached byte arrays for efficiency.byte[]Encode an object to a byte array.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataCodec
encode, encode, encode, encodeList, encodeList, encodeListBool, encodeListInt, encodeListLong, encodeListString
-
Constructor Details
-
ProtoDataCodec
public ProtoDataCodec()
-
-
Method Details
-
encode
-
decode
Description copied from interface:DataCodecDecode a byte array into an object of the specified type. -
encode
-
codecName
-