Пример #1
0
  public void readTimsMsgBody(InputStream in) throws IOException {
    EndianDataInputStream dataIn;

    if (bodyByteorder == BIG_ENDIAN) {
      dataIn = new BigEndianDataInputStream(in);
    } else {
      dataIn = new LittleEndianDataInputStream(in);
    }

    dataMbx = dataIn.readInt();
    bodyByteorder = BIG_ENDIAN;
  }
Пример #2
0
  public void readTimsMsgBody(InputStream in) throws IOException {
    byte[] name = new byte[40];
    EndianDataInputStream dataIn;
    if (bodyByteorder == BIG_ENDIAN) {
      dataIn = new BigEndianDataInputStream(in);
    } else {
      dataIn = new LittleEndianDataInputStream(in);
    }

    recordingTime = dataIn.readInt();

    dataIn.readFully(name);
    logPathName = new String(name);

    logNum = dataIn.readInt();
    logInfo = new DatalogLogInfo[logNum];

    for (int i = 0; i < logNum; i++) {
      logInfo[i] = new DatalogLogInfo(dataIn);
    }
    bodyByteorder = BIG_ENDIAN;
  }
Пример #3
0
  public void readTimsMsgBody(InputStream in) throws IOException {
    EndianDataInputStream dataIn;

    if (bodyByteorder == BIG_ENDIAN) {
      dataIn = new BigEndianDataInputStream(in);
    } else {
      dataIn = new LittleEndianDataInputStream(in);
    }

    recordingTime = dataIn.readInt();
    duration = dataIn.readInt();
    maxRange = dataIn.readInt();
    startAngle = dataIn.readFloat();
    endAngle = dataIn.readFloat();
    pointNum = dataIn.readInt();
    point = new LadarPoint[pointNum];
    for (int i = 0; i < pointNum; i++) {
      point[i] = new LadarPoint(dataIn);
    }

    bodyByteorder = BIG_ENDIAN;
  }