public void toStream(DataOutputStream stream) throws IOException {
  stream.writeByte(flags);
  stream.writeDouble(latitude);
  stream.writeDouble(longitude);
  stream.writeDouble(altitude);
  stream.writeLong(time);
}

public void toStream ( DataOutputStream stream ) throws IOException { stream . writeByte ( flags ) ; stream . writeDouble ( latitude ) ; stream . writeDouble ( longitude ) ; stream . writeDouble ( altitude ) ; stream . writeLong ( time ) ; }
writes the current track point to the data output stream
