RE: How to store the parsing output of tidy into a ByteArray

2004-09-17 Thread Chris Pratt
You don't want to call toString() on the Byte Array you want to call it on the ByteArrayOutputStream. Try this instead: String pageContent; //string pagecontent contains the html content StringBufferInputStream sbis=new StringBufferInputStream(pageContent); ByteArrayOutputStream baos=n

How to store the parsing output of tidy into a ByteArray

2004-09-17 Thread Eldho George
Hi all   I have the url content in a string.That  means string contains html code.I want to pass it to w3c tidy ,perform clean and stored it in a byte array.I tried with following code snippet.But it showing error message and output some junk data. Instead of byte array I tried with FileO