Class MonthDayMarshaller

java.lang.Object
org.wildfly.clustering.marshalling.protostream.time.MonthDayMarshaller
All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<MonthDay>, org.infinispan.protostream.ProtobufTagMarshaller<MonthDay>, Marshallable<MonthDay>, ProtoStreamMarshaller<MonthDay>, Readable<MonthDay>, Writable<MonthDay>

public class MonthDayMarshaller extends Object implements ProtoStreamMarshaller<MonthDay>
Marshals MonthDay instances.
Author:
Paul Ferraro
  • Constructor Details

    • MonthDayMarshaller

      public MonthDayMarshaller()
  • Method Details

    • readFrom

      public MonthDay readFrom(ProtoStreamReader reader) throws IOException
      Description copied from interface: Readable
      Reads an object from the specified reader.
      Specified by:
      readFrom in interface Readable<MonthDay>
      Parameters:
      reader - a ProtoStream reader
      Returns:
      the read object
      Throws:
      IOException - if the object could not be read
    • writeTo

      public void writeTo(ProtoStreamWriter writer, MonthDay value) throws IOException
      Description copied from interface: Writable
      Writes the specified object to the specified writer.
      Specified by:
      writeTo in interface Writable<MonthDay>
      Parameters:
      writer - a ProtoStream writer
      value - the object to be written
      Throws:
      IOException - if the object could not be written
    • getJavaClass

      public Class<? extends MonthDay> getJavaClass()
      Description copied from interface: Marshallable
      Returns the type of object handled by this marshallable instance.
      Specified by:
      getJavaClass in interface org.infinispan.protostream.BaseMarshaller<MonthDay>
      Specified by:
      getJavaClass in interface Marshallable<MonthDay>
      Returns:
      the type of object handled by this marshallable instance.