Пример #1
0
 public Pack read(DataInputX din) throws IOException {
   // this.key = din.readLong();
   this.time = din.readLong();
   this.level = din.readByte();
   this.objType = din.readText();
   this.objHash = din.readInt();
   this.title = din.readText();
   this.message = din.readText();
   this.tags = (MapValue) din.readValue();
   return this;
 }
Пример #2
0
  public Step read(DataInputX in) throws IOException {
    super.read(in);

    this.txid = in.readDecimal();
    this.hash = (int) in.readDecimal();
    this.elapsed = (int) in.readDecimal();
    this.cputime = (int) in.readDecimal();
    this.error = (int) in.readDecimal();
    this.opt = in.readByte();
    switch (opt) {
      case 1:
        this.address = in.readText();
        break;
      default:
    }
    return this;
  }