Input Stream object has a read method which returns an int...
Ant how can convert it into String ?
Ant how can convert it into String ?
is = someMethodWhichReturnsInputStream(); BufferedInputStream bis = new StringBufferInputStream(is); int c; StringBuffer sb = new StringBuffer(); while((c=bis.read())!=-1) { sb.append(c); } htmlContent = sb;
Comment