Code example for DataOutput

Methods: writeInt

0
		word = input.readInt();
		count = input.readInt();
	} 
 
	public void write(DataOutput output) throws IOException {
		output.writeInt(word);
		output.writeInt(count);
	} 
	 
	public IntAugmentedPhrase getIntAugmentedPhrase() 
	{ 
		int[] x = {word};
		int[] y = {count};
		return new IntAugmentedPhrase(x, 0, y);
	} 
 
}