예제 #1
0
파일: Report.java 프로젝트: sun1534/umsp
  public void readDataInput(DataInput in) throws IOException {
    super.readDataInput(in);
    submit_node_id = in.readInt();
    submit_time_stamp = in.readInt();
    submit_sequence_id = in.readInt();

    report_type = in.readByte();
    user_number = readFixedString(in, 21);
    state = in.readByte();
    error_code = in.readByte();
    reserve = readFixedString(in, 8);
  }
예제 #2
0
파일: Report.java 프로젝트: sun1534/umsp
  protected void writeDataOutput(DataOutput out) throws IOException {
    super.writeDataOutput(out);
    out.writeInt(submit_node_id);
    out.writeInt(submit_time_stamp);
    out.writeInt(submit_sequence_id);

    out.writeByte(report_type);
    writeFixedString(out, user_number, 21);
    out.writeByte(state);
    out.writeByte(error_code);
    writeFixedString(out, reserve, 8);
  }