Exemplo n.º 1
0
  /**
   * Reads an instance of this record from the provided DISInputStream
   *
   * @param dis The DISInputStream to read the record from
   * @return The RadioEntityType deserialised from the provided input stream
   * @throws IOException Thrown if an error occurred reading the record from the stream
   */
  public static RadioEntityType read(DISInputStream dis) throws IOException {
    short entityKind = dis.readUI8();
    short domain = dis.readUI8();
    int country = dis.readUI16();
    short category = dis.readUI8();
    short nomenclatureVersion = dis.readUI8();
    int nomenclature = dis.readUI16();

    return new RadioEntityType(
        entityKind, domain, country, category, nomenclatureVersion, nomenclature);
  }
Exemplo n.º 2
0
 /** {@inheritDoc} */
 @Override
 public void read(DISInputStream dis) throws IOException {
   markingCharset = dis.readUI8();
   String asString = dis.readString(MARKING_CHARACTERS);
   setEntityMarkingString(asString);
 }