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();
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE