All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.corda.data.Magic Maven / Gradle / Ivy

There is a newer version: 5.2.1.53
Show newest version
/**
 * Autogenerated by Avro
 *
 * DO NOT EDIT DIRECTLY
 */
package net.corda.data;
@org.apache.avro.specific.FixedSize(8)
@org.apache.avro.specific.AvroGenerated
public class Magic extends org.apache.avro.specific.SpecificFixed {
  private static final long serialVersionUID = 1866993411489069628L;
  public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"fixed\",\"name\":\"Magic\",\"namespace\":\"net.corda.data\",\"size\":8}");
  public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
  public org.apache.avro.Schema getSchema() { return SCHEMA$; }

  /** Creates a new Magic */
  public Magic() {
    super();
  }

  /**
   * Creates a new Magic with the given bytes.
   * @param bytes The bytes to create the new Magic.
   */
  public Magic(byte[] bytes) {
    super(bytes);
  }

  private static final org.apache.avro.io.DatumWriter
    WRITER$ = new org.apache.avro.specific.SpecificDatumWriter(SCHEMA$);

  @Override public void writeExternal(java.io.ObjectOutput out)
    throws java.io.IOException {
    WRITER$.write(this, org.apache.avro.specific.SpecificData.getEncoder(out));
  }

  private static final org.apache.avro.io.DatumReader
    READER$ = new org.apache.avro.specific.SpecificDatumReader(SCHEMA$);

  @Override public void readExternal(java.io.ObjectInput in)
    throws java.io.IOException {
    READER$.read(this, org.apache.avro.specific.SpecificData.getDecoder(in));
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy