Class SqlDateDelegate

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

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

      • SqlDateDelegate

        public SqlDateDelegate()
    • Method Detail

      • getFieldType

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

        public Date readFrom​(io.protostuff.Input input)
                      throws IOException
        Specified by:
        readFrom in interface io.protostuff.runtime.Delegate<Date>
        Throws:
        IOException
      • writeTo

        public void writeTo​(io.protostuff.Output output,
                            int number,
                            Date value,
                            boolean repeated)
                     throws IOException
        Specified by:
        writeTo in interface io.protostuff.runtime.Delegate<Date>
        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<Date>
        Throws:
        IOException
      • typeClass

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