Class TimestampDelegate

  • All Implemented Interfaces:
    io.protostuff.runtime.Delegate<Timestamp>

    public class TimestampDelegate
    extends Object
    implements io.protostuff.runtime.Delegate<Timestamp>
    Custom Timestamp delegate
    • Constructor Detail

      • TimestampDelegate

        public TimestampDelegate()
    • Method Detail

      • getFieldType

        public io.protostuff.WireFormat.FieldType getFieldType()
        Specified by:
        getFieldType in interface io.protostuff.runtime.Delegate<Timestamp>
      • writeTo

        public void writeTo​(io.protostuff.Output output,
                            int number,
                            Timestamp value,
                            boolean repeated)
                     throws IOException
        Specified by:
        writeTo in interface io.protostuff.runtime.Delegate<Timestamp>
        Throws:
        IOException
      • transfer

        public void transfer​(io.protostuff.Pipe pipe,
                             io.protostuff.Input input,
                             io.protostuff.Output output,
                             int number,
                             boolean repeated)
                      throws IOException
        Specified by:
        transfer in interface io.protostuff.runtime.Delegate<Timestamp>
        Throws:
        IOException
      • typeClass

        public Class<?> typeClass()
        Specified by:
        typeClass in interface io.protostuff.runtime.Delegate<Timestamp>