Code example for DataInputStream

Methods: readInt

0
	public int getLineNumber() { 
		return lineNumber;
	} 
 
	public void deserialize(DataInputStream in) throws IOException {
		setFileName(CommunicationUtilities.readString(in));
		setLineNumber(in.readInt());
		in.readInt(); // read the 4 bytes of the watched-list length. this is 0
						// now. 
	} 
 
	public int getType() { 
		return 2003; 
	} 
 
	public void serialize(DataOutputStream out) throws IOException {
		out.writeShort(getType());
		CommunicationUtilities.writeString(out, getFileName());
		out.writeInt(getLineNumber());
		out.writeInt(0);
	}