Java Doc for LooseHtml.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » xml » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.xml.AbstractParser
      com.caucho.xml.XmlParser
         com.caucho.xml.LooseHtml

LooseHtml
public class LooseHtml extends XmlParser (Code)
A forgiving HTML parser interface.

The forgiving HTML parser is useful for extracting information from the web since many sites have not-quite-standard HTML.

To parse a file into a DOM Document use


 Document doc = new Html().parseDocument("foo.html");
 

To parse a string into a DOM Document use


 String html = "<h1>small test</h1>";
 Document doc = new Html().parseDocumentString(html);
 

To parse a file using the SAX API use


 Html html = new Html();
 html.setContentHandler(myContentHandler);
 html.parse("foo.html");
 



Constructor Summary
public  LooseHtml()
    



Constructor Detail
LooseHtml
public LooseHtml()(Code)
Create a new forgiving HTML parser




Fields inherited from com.caucho.xml.XmlParser
final static QName DOC_NAME(Code)(Java Doc)
final static QName JSP_ATTRIBUTE_NAME(Code)(Java Doc)
final static QName JSP_NAME(Code)(Java Doc)
final static QName TEXT_NAME(Code)(Java Doc)
final static QName WHITESPACE_NAME(Code)(Java Doc)
final public static String XML(Code)(Java Doc)
final public static String XMLNS(Code)(Java Doc)
QName _activeNode(Code)(Java Doc)
ArrayList<String> _attrNames(Code)(Java Doc)
ArrayList<String> _attrValues(Code)(Java Doc)
QAttributes _attributes(Code)(Java Doc)
CharBuffer _buf(Code)(Java Doc)
CharBuffer _cb(Code)(Java Doc)
int[] _elementLines(Code)(Java Doc)
QName[] _elementNames(Code)(Java Doc)
int _elementTop(Code)(Java Doc)
CharBuffer _eltName(Code)(Java Doc)
String _extPublicId(Code)(Java Doc)
String _extSystemId(Code)(Java Doc)
boolean _hasDoctype(Code)(Java Doc)
boolean _hasTopElement(Code)(Java Doc)
boolean _inDtd(Code)(Java Doc)
ReadStream _is(Code)(Java Doc)
boolean _isHtml(Code)(Java Doc)
boolean _isIgnorableWhitespace(Code)(Java Doc)
boolean _isJspText(Code)(Java Doc)
boolean _isTagStart(Code)(Java Doc)
Locator _locator(Code)(Java Doc)
MacroReader _macro(Code)(Java Doc)
char[] _macroBuffer(Code)(Java Doc)
int _macroIndex(Code)(Java Doc)
int _macroLength(Code)(Java Doc)
CharBuffer _name(Code)(Java Doc)
CharBuffer _nameBuffer(Code)(Java Doc)
NamespaceMap _namespaceMap(Code)(Java Doc)
NamespaceMap[] _namespaces(Code)(Java Doc)
QAttributes _nullAttributes(Code)(Java Doc)
XmlReader _reader(Code)(Java Doc)
boolean _stopOnIncludeEnd(Code)(Java Doc)
CharBuffer _text(Code)(Java Doc)
char[] _textBuffer(Code)(Java Doc)
int _textCapacity(Code)(Java Doc)
String _textFilename(Code)(Java Doc)
int _textLength(Code)(Java Doc)
int _textLine(Code)(Java Doc)
QName _topNamespaceNode(Code)(Java Doc)

Methods inherited from com.caucho.xml.XmlParser
static String badChar(int ch)(Code)(Java Doc)
XmlParseException error(String text)(Code)(Java Doc)
public void free()(Code)(Java Doc)
public int getColumnNumber()(Code)(Java Doc)
public String getFilename()(Code)(Java Doc)
public int getLine()(Code)(Java Doc)
public int getLineNumber()(Code)(Java Doc)
int getNodeLine()(Code)(Java Doc)
public String getPublicId()(Code)(Java Doc)
public String getSystemId()(Code)(Java Doc)
void init()(Code)(Java Doc)
Document parseInt(ReadStream is) throws IOException, SAXException(Code)(Java Doc)
public void pushNamespace(String prefix, String uri)(Code)(Java Doc)
public void setLine(int line)(Code)(Java Doc)
public void setReader(XmlReader reader)(Code)(Java Doc)
public void unread(int ch)(Code)(Java Doc)

Fields inherited from com.caucho.xml.AbstractParser
final static L10N L(Code)(Java Doc)
static Hashtable<String, String> _attrTypes(Code)(Java Doc)
DOMBuilder _builder(Code)(Java Doc)
ContentHandler _contentHandler(Code)(Java Doc)
String _defaultEncoding(Code)(Java Doc)
boolean _doResinInclude(Code)(Java Doc)
QDocumentType _dtd(Code)(Java Doc)
DTDHandler _dtdHandler(Code)(Java Doc)
Entities _entities(Code)(Java Doc)
boolean _entitiesAsText(Code)(Java Doc)
EntityResolver _entityResolver(Code)(Java Doc)
ErrorHandler _errorHandler(Code)(Java Doc)
boolean _expandEntities(Code)(Java Doc)
boolean _extraForgiving(Code)(Java Doc)
String _filename(Code)(Java Doc)
boolean _forgiving(Code)(Java Doc)
boolean _isCoalescing(Code)(Java Doc)
boolean _isJsp(Code)(Java Doc)
boolean _isNamespaceAware(Code)(Java Doc)
boolean _isNamespacePrefixes(Code)(Java Doc)
boolean _isSAXNamespaces(Code)(Java Doc)
boolean _isStaticEncoding(Code)(Java Doc)
boolean _isValidating(Code)(Java Doc)
boolean _isXmlnsAttribute(Code)(Java Doc)
boolean _isXmlnsPrefix(Code)(Java Doc)
LexicalHandler _lexicalHandler(Code)(Java Doc)
int _line(Code)(Java Doc)
Locale _locale(Code)(Java Doc)
boolean _normalizeWhitespace(Code)(Java Doc)
boolean _optionalTags(Code)(Java Doc)
QDocument _owner(Code)(Java Doc)
Policy _policy(Code)(Java Doc)
String _publicId(Code)(Java Doc)
Path _searchPath(Code)(Java Doc)
boolean _singleTopElement(Code)(Java Doc)
boolean _skipComments(Code)(Java Doc)
boolean _skipWhitespace(Code)(Java Doc)
boolean _strictAttributes(Code)(Java Doc)
boolean _strictCharacters(Code)(Java Doc)
boolean _strictComments(Code)(Java Doc)
boolean _strictXml(Code)(Java Doc)
boolean _switchToXml(Code)(Java Doc)
String _systemId(Code)(Java Doc)
static Entities _xmlEntities(Code)(Java Doc)
final static Logger log(Code)(Java Doc)

Methods inherited from com.caucho.xml.AbstractParser
void clear()(Code)(Java Doc)
public ContentHandler getContentHandler()(Code)(Java Doc)
public DTDHandler getDTDHandler()(Code)(Java Doc)
public String getDefaultEncoding()(Code)(Java Doc)
public boolean getEntitiesAsText()(Code)(Java Doc)
public EntityResolver getEntityResolver()(Code)(Java Doc)
public ErrorHandler getErrorHandler()(Code)(Java Doc)
public boolean getFeature(String name) throws SAXNotRecognizedException(Code)(Java Doc)
public boolean getForgiving()(Code)(Java Doc)
public boolean getJsp()(Code)(Java Doc)
public Object getProperty(String name) throws SAXNotRecognizedException(Code)(Java Doc)
public boolean getResinInclude()(Code)(Java Doc)
public Path getSearchPath()(Code)(Java Doc)
public boolean getSkipComments()(Code)(Java Doc)
void init()(Code)(Java Doc)
public boolean isCoalescing()(Code)(Java Doc)
public boolean isNamespaceAware()(Code)(Java Doc)
public boolean isNamespacePrefixes()(Code)(Java Doc)
public boolean isSAXNamespaces()(Code)(Java Doc)
public boolean isValidating()(Code)(Java Doc)
protected InputStream openSource(InputSource source) throws IOException, SAXException(Code)(Java Doc)
public InputStream openStream(String systemId, String publicId) throws IOException, SAXException(Code)(Java Doc)
public InputStream openStream(String systemId, String publicId, EntityResolver entityResolver) throws IOException, SAXException(Code)(Java Doc)
protected InputStream openStream(String systemId, String publicId, EntityResolver entityResolver, boolean isTop) throws IOException, SAXException(Code)(Java Doc)
public InputStream openTopStream(String systemId, String publicId) throws IOException, SAXException(Code)(Java Doc)
public void parse(InputSource source) throws IOException, SAXException(Code)(Java Doc)
public void parse(InputStream is) throws IOException, SAXException(Code)(Java Doc)
public void parse(InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc)
public void parse(String systemId) throws IOException, SAXException(Code)(Java Doc)
public void parse(Path path) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(InputSource source) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(String systemId) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(Path path) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(InputStream is) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc)
public void parseDocument(QDocument doc, InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocumentString(String string) throws IOException, SAXException(Code)(Java Doc)
public void parseImpl(InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc)
abstract Document parseInt(ReadStream is) throws IOException, SAXException(Code)(Java Doc)
public void parseString(String string) throws IOException, SAXException(Code)(Java Doc)
public void setAutodetectXml(boolean autodetectXml)(Code)(Java Doc)
public void setCoalescing(boolean isCoalescing)(Code)(Java Doc)
public void setConfig(DocumentBuilderFactory factory)(Code)(Java Doc)
public void setContentHandler(ContentHandler handler)(Code)(Java Doc)
public void setDTDHandler(DTDHandler handler)(Code)(Java Doc)
public void setDefaultEncoding(String encoding)(Code)(Java Doc)
public void setDocumentHandler(DocumentHandler handler)(Code)(Java Doc)
public void setEntitiesAsText(boolean entitiesAsText)(Code)(Java Doc)
public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc)
public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc)
public void setExpandEntities(boolean expandEntities)(Code)(Java Doc)
public void setFeature(String name, boolean value) throws SAXNotSupportedException(Code)(Java Doc)
public void setFilename(String filename)(Code)(Java Doc)
public void setForgiving(boolean forgiving)(Code)(Java Doc)
public void setJsp(boolean isJsp)(Code)(Java Doc)
public void setLexicalHandler(LexicalHandler handler)(Code)(Java Doc)
public void setLocale(Locale locale)(Code)(Java Doc)
public void setNamespaceAware(boolean isNamespaceAware)(Code)(Java Doc)
public void setNamespacePrefixes(boolean isNamespaces)(Code)(Java Doc)
public void setOwner(QDocument doc)(Code)(Java Doc)
public void setProperty(String name, Object obj) throws SAXNotSupportedException(Code)(Java Doc)
public void setResinInclude(boolean doResinInclude)(Code)(Java Doc)
public void setSAXNamespaces(boolean isNamespaces)(Code)(Java Doc)
public void setSearchPath(Path path)(Code)(Java Doc)
public void setSkipComments(boolean skipComments)(Code)(Java Doc)
public void setSkipWhitespace(boolean skipWhitespace)(Code)(Java Doc)
public void setToLower(boolean toLower)(Code)(Java Doc)
public void setValidating(boolean isValidating)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.