Code example for DataInput

Methods: readIntreadUTF

0
		out.writeUTF( name );
	} 
 
	void read( DataInput in ) throws IOException
	{ 
		this.inode = in.readInt( );
		this.name = in.readUTF( );
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java