Code example for ProtocolException

Methods: printStackTrace

0
	    } catch (MalformedURLException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (ProtocolException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} finally { 
	        if (is != null) {
	     
					is.close();
			 
	        }  
	    } 
		return contentAsString;
 
	} 
	 
	public String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {