Code example for DataInput

Methods: readByte

0
  public int hashCode() { 
    return this.sequenceNumber;
  } 
   
  public void readFields(DataInput in) throws IOException {
    byte version = in.readByte();
    if (version != VERSION) {
	throw new IOException("Unknown version of delegation token " + 
                              version);
    } 
    owner.readFields(in);
    renewer.readFields(in);
    realUser.readFields(in);
    issueDate = WritableUtils.readVLong(in);
    maxDate = WritableUtils.readVLong(in);
    sequenceNumber = WritableUtils.readVInt(in);
    masterKeyId = WritableUtils.readVInt(in);
  } 
 
  public void write(DataOutput out) throws IOException {
    out.writeByte(VERSION);
    owner.write(out);
Connect your IDE to all the code out there  Get Codota for Java