private String getPagina(URL url) 
    {		
        StringWriter writer = new StringWriter();
        try {IOUtils.copy(url.openStream(), writer);} 
        catch (IOException ex) {Logger.getLogger(WebCrawler.class.getName()).log(Level.SEVERE, null, ex);}

        String contenidoString = writer.toString();
        return contenidoString;
    }