Hello, my problem is that I'd like to use the HTMLEditor kit on a string, to get rid of all the HTML coding.
At the moment I'm doing something like
The problem is that this stores and prints out on the whole URL, and I only want it to do it on part of the URL. So my solution is to store the chunk that I want in a string, and the run the Editor kit on it again, which requires me to somehow create a buffered reader on a stirng.
Is this possible or is there a better way of doing this?
posted 10 years ago
My first thought would be to use the getBytes() method of the String class to get a byte representation of the String and then pass that to the constructor for a ByteArrayInputStream.