/** {@inheritDoc} */ @Override public void readContent(DISInputStream dis) throws IOException { super.readContent(dis); fireMissionIndex = dis.readUI32(); locationInWorld.read(dis); burstDescriptor.read(dis); velocity.read(dis); range = dis.readFloat(); }
/** * 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); }
/** {@inheritDoc} */ @Override public void read(DISInputStream dis) throws IOException { markingCharset = dis.readUI8(); String asString = dis.readString(MARKING_CHARACTERS); setEntityMarkingString(asString); }