Code example for DataInput

Methods: readInt

0
		count = c;
	} 
	 
	public static WordWithCount read(DataInput input) throws IOException {
		WordWithCount newItem = new WordWithCount();
		newItem.word = input.readInt();
		newItem.count = input.readInt();
		return newItem;
	} 
	 
	public void readFields(DataInput input) throws IOException {
		word = input.readInt();
		count = input.readInt();
	} 
 
	public void write(DataOutput output) throws IOException {
		output.writeInt(word);
		output.writeInt(count);
	} 
	 
	public IntAugmentedPhrase getIntAugmentedPhrase()