Cobra 0.97
Sponsored Links
Cobra 0.97 Ranking & Summary
File size:
1.8 MB
Platform:
Any Platform
License:
LGPL (GNU Lesser General Public License)
Price:
Downloads:
837
Date added:
2007-07-15
Publisher:
Jose
Cobra 0.97 description
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);
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);
Cobra 0.97 Screenshot
Cobra 0.97 Keywords
HTML
DocumentBuilderImpl
Java HTML
Cobra HTML Toolkit
Cobra 0.97
HtmlPanel
open source library
java html parser
source library
Pure Java
open source
html toolkit
HTML parser
cobra
import
document
Bookmark Cobra 0.97
Cobra 0.97 Copyright
WareSeeker periodically updates pricing and software information of Cobra 0.97 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Cobra 0.97 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
using java html parser
java html parser tutorial
java html parser class
java html parser example
cobra golf clubs
importers
document shredding
java html parser jericho
mustang cobra
pier 1 imports
documentary james brown muhammad ali
java html parsers
cobra gps
document object model
import favorites
html code
documents
important things with demetri martin
Version History
Related Software
LibAxl (or just Axl) is an implementation of the XML 1.0 standard specification. Free Download
StatsDawg is a suite that has been designed to be easily usable as well as configurable. Free Download
Gemz is a SDL clone of the popular game Bejeweled. Free Download
DomSax is an implementation of a XML-parser based on the standard Document Object Model principle. Free Download
icqlib is the most feature complete, open source, library implementation of Mirabilis ICQ protocol available on the Internet. Free Download
NekoHTML is a simple HTML scanner and tag balancer that enables application programmers to parse HTML documents. Free Download
Pod::Compiler can compile POD into an object tree. Free Download
AsmXml is a very fast XML parser and decoder for x86 platforms. Free Download
Latest Software
Popular Software
Favourite Software