Does anyone know if and how can we obtain an InputStream object from a JEditorPane. I have loaded an HTML page in my JEditorPanel through a URL, have done some editing to its html and then its contents have to be passed through InputStream to JTidy... So anyway I can get the InputStream object?
I'm not sure if it is the most direct way, but you can get the Document instance from the JEditorPane. Then get the content of the Document as a String with getText() and you can read a String with a StringReader. Hopefully JTidy accepts a Reader as well as an InputStream.