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.Long
decode(java.io.InputStream in)
Decode a serialized instance into an in-memory object of type T.static long
decodeStatic(java.io.InputStream in)
void
encode(java.io.OutputStream out, java.lang.Long val)
Encode an in-memory object into serialized form.static void
encodeStatic(java.io.OutputStream out, long val)
java.lang.String
getTypeName()
Gets the portable name for the type used in protobuf.
-
-
-
Method Detail
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:Codec
Gets the portable name for the type used in protobuf.- Specified by:
getTypeName
in 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.IOException
Description copied from interface:Codec
Decode 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.IOException
Description copied from interface:Codec
Encode an in-memory object into serialized form.
-
-