htmlpanel
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1
Cobra 0.97
Cobra HTML Toolkit is an open source library that provides a pure Java HTML parser and a renderer. more>>
Cobra HTML Toolkit is an open source library that provides a pure Java HTML parser and a renderer. Cobra is intended to support HTML 4, Javascript and CSS 2. The parser can be used independently of the Cobra renderer.
The Warrior browser is an application that uses the Cobra toolkit to parse and render HTML.
Test Program:
Cobra comes with a test program that shows how a URL is rendered and its HTML DOM as a tree representation. It can be run as follows:
set CLASSPATH=cobra.jar;js.jar
java -Xbootclasspath/p:dom.jar org.xamjwg.html.test.TestEntry
Note that the -Xbootclasspath parameter is only necessary with JDKs prior to 1.5.
Parser Usage:
The recommended way to use the Cobra parser is via the DocumentBuilderImpl class, as follows:
import org.xamjwg.html.parser.*;
import org.xamjwg.html.test.*;
import org.xamjwg.html.*;
import org.w3c.dom.*;
...
HtmlParserContext context = new SimpleHtmlParserContext();
DocumentBuilderImpl dbi = new DocumentBuilderImpl(context);
Document document = dbi.parse(new InputSourceImpl(inputStream));
Rendering Engine Usage:
A Swing component, HtmlPanel, can render a HTML document, as follows:
import org.xamjwg.html.parser.*;
import org.xamjwg.html.test.*;
import org.xamjwg.html.gui.*;
import org.xamjwg.html.*;
import org.w3c.dom.*;
...
HtmlPanel panel = new HtmlPanel();
// This panel should be added to a JFrame or
// another Swing component.
HtmlParserContext context = new SimpleHtmlParserContext();
HtmlRendererContext rcontext = new SimpleHtmlRendererContext(panel);
// Note that document builder should receive both contexts.
DocumentBuilderImpl dbi = new DocumentBuilderImpl(context, rcontext);
Document document = dbi.parse(new InputSourceImpl(inputStream));
// Now set document in panel.
panel.setDocument(document);
<<lessThe Warrior browser is an application that uses the Cobra toolkit to parse and render HTML.
Test Program:
Cobra comes with a test program that shows how a URL is rendered and its HTML DOM as a tree representation. It can be run as follows:
set CLASSPATH=cobra.jar;js.jar
java -Xbootclasspath/p:dom.jar org.xamjwg.html.test.TestEntry
Note that the -Xbootclasspath parameter is only necessary with JDKs prior to 1.5.
Parser Usage:
The recommended way to use the Cobra parser is via the DocumentBuilderImpl class, as follows:
import org.xamjwg.html.parser.*;
import org.xamjwg.html.test.*;
import org.xamjwg.html.*;
import org.w3c.dom.*;
...
HtmlParserContext context = new SimpleHtmlParserContext();
DocumentBuilderImpl dbi = new DocumentBuilderImpl(context);
Document document = dbi.parse(new InputSourceImpl(inputStream));
Rendering Engine Usage:
A Swing component, HtmlPanel, can render a HTML document, as follows:
import org.xamjwg.html.parser.*;
import org.xamjwg.html.test.*;
import org.xamjwg.html.gui.*;
import org.xamjwg.html.*;
import org.w3c.dom.*;
...
HtmlPanel panel = new HtmlPanel();
// This panel should be added to a JFrame or
// another Swing component.
HtmlParserContext context = new SimpleHtmlParserContext();
HtmlRendererContext rcontext = new SimpleHtmlRendererContext(panel);
// Note that document builder should receive both contexts.
DocumentBuilderImpl dbi = new DocumentBuilderImpl(context, rcontext);
Document document = dbi.parse(new InputSourceImpl(inputStream));
// Now set document in panel.
panel.setDocument(document);
Download (1.8MB)
Added: 2007-07-15 License: LGPL (GNU Lesser General Public License) Price:
833 downloads
Secleted [ 0 ] software to compare
- Page: 1 of 1
- 1
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above htmlpanel search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed