public String getContent(final URL url) {
try {
InputStream inputStream = url.openStream();
return new Scanner(inputStream).useDelimiter("\\A").next();
}
catch (final Exception e) {
}
return "";
}
标签:convert,return,String,url,inputStream,InputStream,final
From: https://blog.51cto.com/u_6174294/6207206