Code example for DataInput

Methods: readFully

0
  } 
 
  @Override 
  public void readFields(DataInput in) throws IOException { 
    queueName = Text.readString(in); 
    operations = WritableUtils.readStringArray(in); 
  } 
 
  @Override 
  public void write(DataOutput out) throws IOException { 
    Text.writeString(out, queueName); 
    WritableUtils.writeStringArray(out, operations); 
  } 
}