Java Doc for ParserImpl.java in  » HTML-Parser » JTidy » org » w3c » tidy » 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 » HTML Parser » JTidy » org.w3c.tidy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.tidy.ParserImpl

ParserImpl
final public class ParserImpl (Code)
HTML Parser implementation.
author:
   Dave Raggett dsr@w3.org
author:
   Andy Quick ac.quick@sympatico.ca (translation to Java)
author:
   Fabrizio Giustina
version:
   $Revision: 1.53 $ ($Author: fgiust $)

Inner Class :public static class ParseHTML implements Parser
Inner Class :public static class ParseHead implements Parser
Inner Class :public static class ParseTitle implements Parser
Inner Class :public static class ParseScript implements Parser
Inner Class :public static class ParseBody implements Parser
Inner Class :public static class ParseFrameSet implements Parser
Inner Class :public static class ParseInline implements Parser
Inner Class :public static class ParseList implements Parser
Inner Class :public static class ParseEmpty implements Parser
Inner Class :public static class ParseDefList implements Parser
Inner Class :public static class ParsePre implements Parser
Inner Class :public static class ParseBlock implements Parser
Inner Class :public static class ParseTableTag implements Parser
Inner Class :public static class ParseColGroup implements Parser
Inner Class :public static class ParseRowGroup implements Parser
Inner Class :public static class ParseRow implements Parser
Inner Class :public static class ParseNoFrames implements Parser
Inner Class :public static class ParseSelect implements Parser
Inner Class :public static class ParseText implements Parser
Inner Class :public static class ParseOptGroup implements Parser

Field Summary
final public static  ParserBLOCK
     parser for block elements.
final public static  ParserBODY
     parser for body.
final public static  ParserCOLGROUP
     parser for colgroup.
final public static  ParserDEFLIST
     parser for definition lists.
final public static  ParserEMPTY
     parser for empty elements.
final public static  ParserFRAMESET
     parser for frameset.
final public static  ParserHEAD
     parser for head.
final public static  ParserHTML
     parser for html.
final public static  ParserINLINE
     parser for inline.
final public static  ParserLIST
     parser for list.
final public static  ParserNOFRAMES
     parser for noframes.
final public static  ParserOPTGROUP
     parser for optgroup.
final public static  ParserPRE
     parser for pre.
final public static  ParserROW
     parser for row.
final public static  ParserROWGROUP
     parser for rowgroup.
final public static  ParserSCRIPT
     parser for script.
final public static  ParserSELECT
     parser for select.
final public static  ParserTABLETAG
     parser for table.
final public static  ParserTEXT
     parser for text.
final public static  ParserTITLE
     parser for title.


Method Summary
public static  booleanXMLPreserveWhiteSpace(Node element, TagTable tt)
     Indicates whether or not whitespace should be preserved for this element.
static  voidbadForm(Lexer lexer)
     errors in positioning of form start or end tags generally require human intervention to fix.
static  voidmoveNodeToBody(Lexer lexer, Node node)
     moves given node to end of body element.
protected static  voidmoveToHead(Lexer lexer, Node element, Node node)
     Move node to the head, where element is used as starting point in hunt for head.
public static  NodeparseDocument(Lexer lexer)
     HTML is the top level element.
protected static  voidparseTag(Lexer lexer, Node node, short mode)
    
public static  NodeparseXMLDocument(Lexer lexer)
    
public static  voidparseXMLElement(Lexer lexer, Node element, short mode)
     XML documents.

Field Detail
BLOCK
final public static Parser BLOCK(Code)
parser for block elements.



BODY
final public static Parser BODY(Code)
parser for body.



COLGROUP
final public static Parser COLGROUP(Code)
parser for colgroup.



DEFLIST
final public static Parser DEFLIST(Code)
parser for definition lists.



EMPTY
final public static Parser EMPTY(Code)
parser for empty elements.



FRAMESET
final public static Parser FRAMESET(Code)
parser for frameset.



HEAD
final public static Parser HEAD(Code)
parser for head.



HTML
final public static Parser HTML(Code)
parser for html.



INLINE
final public static Parser INLINE(Code)
parser for inline.



LIST
final public static Parser LIST(Code)
parser for list.



NOFRAMES
final public static Parser NOFRAMES(Code)
parser for noframes.



OPTGROUP
final public static Parser OPTGROUP(Code)
parser for optgroup.



PRE
final public static Parser PRE(Code)
parser for pre.



ROW
final public static Parser ROW(Code)
parser for row.



ROWGROUP
final public static Parser ROWGROUP(Code)
parser for rowgroup.



SCRIPT
final public static Parser SCRIPT(Code)
parser for script.



SELECT
final public static Parser SELECT(Code)
parser for select.



TABLETAG
final public static Parser TABLETAG(Code)
parser for table.



TEXT
final public static Parser TEXT(Code)
parser for text.



TITLE
final public static Parser TITLE(Code)
parser for title.





Method Detail
XMLPreserveWhiteSpace
public static boolean XMLPreserveWhiteSpace(Node element, TagTable tt)(Code)
Indicates whether or not whitespace should be preserved for this element. If an xml:space attribute is found, then if the attribute value is preserve, returns true. For any other value, returns false. If an xml:space attribute was not found, then the following element names result in a return value of true: pre, script, style, and xsl:text. Finally, if a TagTable was passed in and the element appears as the "pre" element in the TagTable, then true will be returned. Otherwise, false is returned.
Parameters:
  element - The Node to test to see if whitespace should be preserved.
Parameters:
  tt - The TagTable to test for the getNodePre() function. This may benull, in which case this test is bypassed. true or false, as explained above.



badForm
static void badForm(Lexer lexer)(Code)
errors in positioning of form start or end tags generally require human intervention to fix.



moveNodeToBody
static void moveNodeToBody(Lexer lexer, Node node)(Code)
moves given node to end of body element.
Parameters:
  lexer - Lexer
Parameters:
  node - Node to insert



moveToHead
protected static void moveToHead(Lexer lexer, Node element, Node node)(Code)
Move node to the head, where element is used as starting point in hunt for head. Normally called during parsing.
Parameters:
  lexer -
Parameters:
  element -
Parameters:
  node -



parseDocument
public static Node parseDocument(Lexer lexer)(Code)
HTML is the top level element.



parseTag
protected static void parseTag(Lexer lexer, Node node, short mode)(Code)

Parameters:
  lexer -
Parameters:
  node -
Parameters:
  mode -



parseXMLDocument
public static Node parseXMLDocument(Lexer lexer)(Code)



parseXMLElement
public static void parseXMLElement(Lexer lexer, Node element, short mode)(Code)
XML documents.



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.