/**
* StreamからStringに転換する
*
* @param inputHtml
* @return
* @throws IOException
*/
private String streamToString(InputStream inputHtml) throws IOException {
StringBuffer out = new StringBuffer();
byte[] b = new byte[4096];
for (int n; (n = inputHtml.read(b)) != -1;) {
out.append(new String(b, 0, n));
}
return out.toString();
}
* StreamからStringに転換する
*
* @param inputHtml
* @return
* @throws IOException
*/
private String streamToString(InputStream inputHtml) throws IOException {
StringBuffer out = new StringBuffer();
byte[] b = new byte[4096];
for (int n; (n = inputHtml.read(b)) != -1;) {
out.append(new String(b, 0, n));
}
return out.toString();
}