Code example for DataInput

Methods: readBoolean, readLong, readShort

0
    Text.writeString(out, owner);
    Text.writeString(out, group);
  } 
 
  public void readFields(DataInput in) throws IOException {
    String strPath = Text.readString(in);
    this.path = new Path(strPath);
    this.length = in.readLong();
    this.isdir = in.readBoolean();
    this.block_replication = in.readShort();
    blocksize = in.readLong();
    modification_time = in.readLong();
    access_time = in.readLong();
    permission.readFields(in);
    owner = Text.readString(in);
    group = Text.readString(in);
  } 
 
  /** 
   * Compare this object to another object 
   *