Esempio n. 1
0
  /** {@inheritDoc} */
  @Override
  public void writeContent(DISOutputStream dos) throws IOException {
    super.writeContent(dos);

    dos.writeUI32(fireMissionIndex);
    locationInWorld.write(dos);
    burstDescriptor.write(dos);
    velocity.write(dos);
    dos.writeFloat(range);
  }
Esempio n. 2
0
  /** {@inheritDoc} */
  @Override
  public void write(DISOutputStream dos) throws IOException {
    dos.writeUI8(markingCharset);

    // TODO FIX This will only work for ASCII, we need something to convert between other
    // formats
    byte[] asBytes = markingString.getBytes();
    byte[] finalBytes = Arrays.copyOf(asBytes, MARKING_CHARACTERS);

    dos.write(finalBytes);
  }