Java Doc for ExtHTMLFormatter.java in  » J2EE » Enhydra-Application-Framework » org » enhydra » xml » io » 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 » J2EE » Enhydra Application Framework » org.enhydra.xml.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.xml.io.ExtBaseDOMFormatter
      org.enhydra.xml.io.ExtHTMLFormatter

ExtHTMLFormatter
public class ExtHTMLFormatter extends ExtBaseDOMFormatter implements org.enhydra.util.DOMFormatter(Code)
Formatter for outputting a HTML DOM as a HTML text document.



Constructor Summary
public  ExtHTMLFormatter(Node node, OutputOptions outputOptions, boolean forPreFormatting)
     Constructor.

Method Summary
final protected  StringgetCharacterEntity(char textChar)
    
static  OutputOptionsgetDefaultOutputOptions()
     Get the default OutputOptions for a document formatter with this formatter.
public static  FormattergetFormatter(Node node, OutputOptions outputOptions, boolean forPreFormatting)
    
public  voidhandleAttr(Attr attr)
     Handler called for Attr nodes.
public  voidhandleCDATASection(CDATASection cdata)
     Handler called for CDATASection nodes.
public  voidhandleDocument(Document document)
     Handler called for Document nodes.
public  voidhandleDocumentFragment(DocumentFragment documentFragment)
     Handler called for DocumentFragment nodes; just process children.
public  voidhandleDocumentType(DocumentType documentType)
     Handler called for Document nodes; should never be called.
public  voidhandleElement(Element element)
     Handler called for Element nodes.

This optionally corrects problem cases for browsers:

  • ID attributes are dropped from SPAN tags.
public  voidhandleProcessingInstruction(ProcessingInstruction pi)
     Handler called for ProcessingInstruction nodes.
final public  voidhandleText(Text text)
     Handler called for Text nodes.
public  byte[]toBytes(Node document)
    
public  voidwrite(Node node, OutputStream out)
     Output a document or any node and its children to a OutputStream.
final protected  voidwriteOpenTag(Element element, String tagName, boolean hasChildren)
     Write an element open tag.


Constructor Detail
ExtHTMLFormatter
public ExtHTMLFormatter(Node node, OutputOptions outputOptions, boolean forPreFormatting)(Code)
Constructor.




Method Detail
getCharacterEntity
final protected String getCharacterEntity(char textChar)(Code)

See Also:   ExtBaseDOMFormatter.getCharacterEntity



getDefaultOutputOptions
static OutputOptions getDefaultOutputOptions()(Code)
Get the default OutputOptions for a document formatter with this formatter. The encoding will not be set, which signals to use the default encoding.



getFormatter
public static Formatter getFormatter(Node node, OutputOptions outputOptions, boolean forPreFormatting)(Code)



handleAttr
public void handleAttr(Attr attr) throws IOException(Code)
Handler called for Attr nodes.
See Also:   org.enhydra.xml.dom.DOMTraversal.Handler.handleAttr



handleCDATASection
public void handleCDATASection(CDATASection cdata) throws IOException(Code)
Handler called for CDATASection nodes. Non-standard extension: outputs data as-is.
See Also:   org.enhydra.xml.dom.DOMTraversal.Handler.handleCDATASection



handleDocument
public void handleDocument(Document document) throws IOException(Code)
Handler called for Document nodes.
See Also:   org.enhydra.xml.dom.DOMTraversal.Handler.handleDocument



handleDocumentFragment
public void handleDocumentFragment(DocumentFragment documentFragment)(Code)
Handler called for DocumentFragment nodes; just process children.
See Also:   org.enhydra.xml.dom.DOMTraversal.Handler.handleDocumentFragment



handleDocumentType
public void handleDocumentType(DocumentType documentType) throws IOException(Code)
Handler called for Document nodes; should never be called.
See Also:   org.enhydra.xml.dom.DOMTraversal.Handler.handleDocumentType



handleElement
public void handleElement(Element element) throws IOException(Code)
Handler called for Element nodes.

This optionally corrects problem cases for browsers:

  • ID attributes are dropped from SPAN tags. This cause Internet Explorer 4.0 to get confused on keep-alive connections.

See Also:   org.enhydra.xml.dom.DOMTraversal.Handler.handleElement



handleProcessingInstruction
public void handleProcessingInstruction(ProcessingInstruction pi) throws IOException(Code)
Handler called for ProcessingInstruction nodes.
See Also:   org.enhydra.xml.dom.DOMTraversal.Handler.handleProcessingInstruction



handleText
final public void handleText(Text text) throws IOException(Code)
Handler called for Text nodes.
See Also:   org.enhydra.xml.dom.DOMTraversal.Handler.handleText



toBytes
public byte[] toBytes(Node document)(Code)



write
public void write(Node node, OutputStream out) throws IOException(Code)
Output a document or any node and its children to a OutputStream.



writeOpenTag
final protected void writeOpenTag(Element element, String tagName, boolean hasChildren) throws IOException(Code)
Write an element open tag. The hasChildren option is ignored.



Fields inherited from org.enhydra.xml.io.ExtBaseDOMFormatter
final protected static char ATTR_QUOTE_CHAR(Code)(Java Doc)
final protected static String ATTR_QUOTE_CHAR_ENTITY_REF(Code)(Java Doc)
final protected static int MAX_ENTITY_QUICK_CHECK_CHAR(Code)(Java Doc)
final protected DocumentType fDocType(Code)(Java Doc)
final protected Document fDocument(Code)(Java Doc)
protected int fDynamicFormattedElementCount(Code)(Java Doc)
final protected OutputOptions fOptions(Code)(Java Doc)
protected Writer fOut(Code)(Java Doc)
final protected boolean fPreFormatMode(Code)(Java Doc)
protected int fPreFormattedElementCount(Code)(Java Doc)
final protected boolean fPrettyPrinting(Code)(Java Doc)
final protected String fPublicId(Code)(Java Doc)
final protected String fSystemId(Code)(Java Doc)
final protected DOMTraversal fTraverser(Code)(Java Doc)
final protected boolean fUsePreFormattedAttrText(Code)(Java Doc)
final protected boolean fUsePreFormattedElements(Code)(Java Doc)
final protected boolean fUsePreFormattedText(Code)(Java Doc)

Methods inherited from org.enhydra.xml.io.ExtBaseDOMFormatter
public static DocumentInfo findDocumentInfo(Document document)(Code)(Java Doc)
abstract protected String getCharacterEntity(char textChar)(Code)(Java Doc)
final public int getDynamicFormattedElementCount()(Code)(Java Doc)
final public int getDynamicFormattedTextCount()(Code)(Java Doc)
final public String getMIMEEncoding()(Code)(Java Doc)
final public int getPreFormattedElementCount()(Code)(Java Doc)
final public int getPreFormattedTextCount()(Code)(Java Doc)
final public void handleComment(Comment comment) throws IOException(Code)(Java Doc)
final public void handleEntity(Entity entity)(Code)(Java Doc)
final public void handleEntityReference(EntityReference entityRef) throws IOException(Code)(Java Doc)
final public void handleNotation(Notation notation)(Code)(Java Doc)
public void handleText(Text text) throws IOException(Code)(Java Doc)
final public String preFormatNode(Node node)(Code)(Java Doc)
final protected void printIndent() throws IOException(Code)(Java Doc)
final public boolean usedPreFormattedElements()(Code)(Java Doc)
public boolean usedPreFormattedText()(Code)(Java Doc)
final public void write(Node node, Writer writer) throws IOException(Code)(Java Doc)
final protected void writeAttributeValue(Attr attr) throws IOException(Code)(Java Doc)
abstract protected void writeOpenTag(Element element, String tagName, boolean hasChildren) throws IOException(Code)(Java Doc)
final protected void writeText(String text) throws IOException(Code)(Java Doc)
final protected void writeln() throws IOException(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.