Package de.spotnik.util.html

Examples of de.spotnik.util.html.HTMLParser


     * @param body the html message body
     * @return the content of the html without tags
     */
    public static String getText( String body)
    {
        HTMLParser parser = new HTMLParser(new StringReader(body));
        StringBuffer text = new StringBuffer();
        String line;
       
        try
        {
            BufferedReader reader = new BufferedReader(parser.getReader());
           
            while( (line = reader.readLine()) != null)
            {
                text.append(line + "\n");
            }
View Full Code Here

TOP

Related Classes of de.spotnik.util.html.HTMLParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.