Code example for DataInputStream

Methods: readInt

0
		GuiHandler.argumentQueue.put(getGuiID(), getArgs()); 
	} 
 
	@Override 
	public void readData(DataInputStream data) throws IOException {
		super.readData(data);
		setGuiID(data.readInt());
	} 
 
	@Override 
	public void writeData(DataOutputStream data) throws IOException {
		super.writeData(data);
		data.writeInt(getGuiID());
	} 
}