Package com.salas.bb.utils.htmlparser

Examples of com.salas.bb.utils.htmlparser.HtmlParser


    static String process(String aText, int sizeLimit, boolean html)
    {
        if (aText == null) return null;

        IHtmlParserListener listener;
        HtmlParser parser = new HtmlParser(true);

        StringBuilderListener bufListener = new StringBuilderListener(aText.length(), sizeLimit);
        listener = html ? new SwingHtmlFilter(bufListener) : new SwingPlainFilter(bufListener);

        try
        {
            parser.parse(new StringReader(aText), listener);
        } catch (IOException e)
        {
            // OK. Buffer will be empty.
        }
View Full Code Here

TOP

Related Classes of com.salas.bb.utils.htmlparser.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.