Code example for InputStream

Methods: availableclose

0
	} 
 
	public long getSize() { 
		try { 
			InputStream in = getInputStream();
			long avail = in.available();
			in.close();
			return avail;
		} catch (Exception e) {
			e.printStackTrace();
			return 0; 
		} 
	} 
 
}