Class OffsetCodec

  • All Implemented Interfaces:
    Codec<Offset>

    public class OffsetCodec
    extends java.lang.Object
    implements Codec<Offset>
    • Constructor Summary

      Constructors 
      Constructor Description
      OffsetCodec()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Offset decode​(java.io.InputStream in)
      Decode a serialized instance into an in-memory object of type T.
      void encode​(java.io.OutputStream out, Offset val)
      Encode an in-memory object into serialized form.
      java.lang.String getTypeName()
      Gets the portable name for the type used in protobuf.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OffsetCodec

        public OffsetCodec()
    • 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 interface Codec<Offset>
        Returns:
        The name of the type.
      • decode

        public Offset 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.
        Specified by:
        decode in interface Codec<Offset>
        Parameters:
        in - The input stream the object is to be decoded from.
        Returns:
        The decoded object.
        Throws:
        java.io.IOException
      • encode

        public void encode​(java.io.OutputStream out,
                           Offset val)
                    throws java.io.IOException
        Description copied from interface: Codec
        Encode an in-memory object into serialized form.
        Specified by:
        encode in interface Codec<Offset>
        Parameters:
        out - The output stream to send the serialized object to.
        val - The in-memory object to be serialized.
        Throws:
        java.io.IOException