Class LongCodec
- java.lang.Object
-
- com.grammatech.gtirb.auxdatacodec.LongCodec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Longdecode(java.io.InputStream in)Decode a serialized instance into an in-memory object of type T.static longdecodeStatic(java.io.InputStream in)voidencode(java.io.OutputStream out, java.lang.Long val)Encode an in-memory object into serialized form.static voidencodeStatic(java.io.OutputStream out, long val)java.lang.StringgetTypeName()Gets the portable name for the type used in protobuf.
-
-
-
Method Detail
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:CodecGets the portable name for the type used in protobuf.- Specified by:
getTypeNamein interfaceCodec<java.lang.Long>- Returns:
- The name of the type.
-
decodeStatic
public static long decodeStatic(java.io.InputStream in) throws java.io.IOException- Throws:
java.io.IOException
-
decode
public java.lang.Long decode(java.io.InputStream in) throws java.io.IOExceptionDescription copied from interface:CodecDecode a serialized instance into an in-memory object of type T.
-
encodeStatic
public static void encodeStatic(java.io.OutputStream out, long val) throws java.io.IOException- Throws:
java.io.IOException
-
encode
public void encode(java.io.OutputStream out, java.lang.Long val) throws java.io.IOExceptionDescription copied from interface:CodecEncode an in-memory object into serialized form.
-
-