Code example for DataOutputStream

Methods: writeInt

0
		return new RequestSubmitPacket(getId()); 
	} 
 
	@Override 
	public void writeData(DataOutputStream data) throws IOException {
		super.writeData(data);
		stack.write(data);
		data.writeInt(dimension);
	} 
 
	@Override 
	public void readData(DataInputStream data) throws IOException {
		super.readData(data);
		stack = ItemIdentifierStack.read(data);
		dimension = data.readInt();
	} 
}