Java Doc for ToXMLSAXHandler.java in  » XML » xalan » org » apache » xml » serializer » 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 » XML » xalan » org.apache.xml.serializer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xml.serializer.SerializerBase
      org.apache.xml.serializer.ToSAXHandler
         org.apache.xml.serializer.ToXMLSAXHandler

ToXMLSAXHandler
final public class ToXMLSAXHandler extends ToSAXHandler (Code)
This class receives notification of SAX-like events, and with gathered information over these calls it will invoke the equivalent SAX methods on a handler, the ultimate xsl:output method is known to be "xml". This class is not a public API, it is only public because it is used by Xalan.


Field Summary
protected  booleanm_escapeSetting
    

Constructor Summary
public  ToXMLSAXHandler()
    
public  ToXMLSAXHandler(ContentHandler handler, String encoding)
    
public  ToXMLSAXHandler(ContentHandler handler, LexicalHandler lex, String encoding)
    

Method Summary
public  voidaddAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute)
     Adds the given attribute to the set of attributes, and also makes sure that the needed prefix/uri mapping is declared, but only if there is a currently open element.
public  voidattributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4)
    
public  voidcharacters(String chars)
    
public  voidcharacters(char[] ch, int off, int len)
    
public  voidcloseCDATA()
     Closes ane open cdata tag, and unlike the this.endCDATA() method (from the LexicalHandler) interface, this "internal" method will send the endCDATA() call to the wrapped handler.
protected  voidcloseStartTag()
     This method is called when all the data needed for a call to the SAX handler's startElement() method has been gathered.
public  voidcomment(char[] arg0, int arg1, int arg2)
    
public  voidelementDecl(String arg0, String arg1)
    
public  voidendCDATA()
    
public  voidendDTD()
    
public  voidendDocument()
     Receives notification of the end of the document.
public  voidendElement(String namespaceURI, String localName, String qName)
    
public  voidendElement(String elemName)
    
public  voidendPrefixMapping(String prefix)
    
public  voidexternalEntityDecl(String arg0, String arg1, String arg2)
    
public  PropertiesgetOutputFormat()
    
public  OutputStreamgetOutputStream()
    
public  WritergetWriter()
    
public  voidignorableWhitespace(char[] arg0, int arg1, int arg2)
    
public  voidindent(int n)
     Do nothing for SAX.
public  voidinternalEntityDecl(String arg0, String arg1)
    
public  voidnamespaceAfterStartElement(String prefix, String uri)
     Send a namespace declaration in the output document.
protected  booleanpopNamespace(String prefix)
     Undeclare the namespace that is currently pointed to by a given prefix.
public  voidprocessingInstruction(String target, String data)
    
public  booleanreset()
     Try's to reset the super class and reset this class for re-use, so that you don't need to create a new serializer (mostly for performance reasons).
public  voidserialize(Node node)
    
public  voidsetDocumentLocator(Locator arg0)
    
public  booleansetEscaping(boolean escape)
    
public  voidsetOutputFormat(Properties format)
    
public  voidsetOutputStream(OutputStream output)
    
public  voidsetWriter(Writer writer)
    
public  voidskippedEntity(String arg0)
    
public  voidstartCDATA()
    
public  voidstartElement(String elementNamespaceURI, String elementLocalName, String elementName)
     Start an element in the output document.
public  voidstartElement(String elementName)
    
public  voidstartElement(String namespaceURI, String localName, String name, Attributes atts)
    
public  voidstartEntity(String arg0)
    
public  voidstartPrefixMapping(String prefix, String uri)
    
public  booleanstartPrefixMapping(String prefix, String uri, boolean shouldFlush)
     Remember the prefix/uri mapping at the current nested element depth.

Field Detail
m_escapeSetting
protected boolean m_escapeSetting(Code)
Keeps track of whether output escaping is currently enabled




Constructor Detail
ToXMLSAXHandler
public ToXMLSAXHandler()(Code)



ToXMLSAXHandler
public ToXMLSAXHandler(ContentHandler handler, String encoding)(Code)



ToXMLSAXHandler
public ToXMLSAXHandler(ContentHandler handler, LexicalHandler lex, String encoding)(Code)




Method Detail
addAttribute
public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) throws SAXException(Code)
Adds the given attribute to the set of attributes, and also makes sure that the needed prefix/uri mapping is declared, but only if there is a currently open element.
Parameters:
  uri - the URI of the attribute
Parameters:
  localName - the local name of the attribute
Parameters:
  rawName - the qualified name of the attribute
Parameters:
  type - the type of the attribute (probably CDATA)
Parameters:
  value - the value of the attribute
Parameters:
  XSLAttribute - true if this attribute is coming from an xsl:attribute element
See Also:   ExtendedContentHandler.addAttribute(StringStringStringStringString)



attributeDecl
public void attributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4) throws SAXException(Code)

See Also:   org.xml.sax.ext.DeclHandler.attributeDecl(StringStringStringStringString)



characters
public void characters(String chars) throws SAXException(Code)

See Also:   ExtendedContentHandler.characters(String)



characters
public void characters(char[] ch, int off, int len) throws SAXException(Code)



closeCDATA
public void closeCDATA() throws SAXException(Code)
Closes ane open cdata tag, and unlike the this.endCDATA() method (from the LexicalHandler) interface, this "internal" method will send the endCDATA() call to the wrapped handler.



closeStartTag
protected void closeStartTag() throws SAXException(Code)
This method is called when all the data needed for a call to the SAX handler's startElement() method has been gathered.



comment
public void comment(char[] arg0, int arg1, int arg2) throws SAXException(Code)

See Also:   org.xml.sax.ext.LexicalHandler.comment(char[]intint)



elementDecl
public void elementDecl(String arg0, String arg1) throws SAXException(Code)

See Also:   org.xml.sax.ext.DeclHandler.elementDecl(StringString)



endCDATA
public void endCDATA() throws SAXException(Code)

See Also:   org.xml.sax.ext.LexicalHandler.endCDATA



endDTD
public void endDTD() throws SAXException(Code)

See Also:   org.xml.sax.ext.LexicalHandler.endDTD



endDocument
public void endDocument() throws SAXException(Code)
Receives notification of the end of the document.
See Also:   org.xml.sax.ContentHandler.endDocument



endElement
public void endElement(String namespaceURI, String localName, String qName) throws SAXException(Code)

See Also:   org.xml.sax.ContentHandler.endElement(StringStringString)



endElement
public void endElement(String elemName) throws SAXException(Code)

See Also:   ExtendedContentHandler.endElement(String)



endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException(Code)

See Also:   org.xml.sax.ContentHandler.endPrefixMapping(String)



externalEntityDecl
public void externalEntityDecl(String arg0, String arg1, String arg2) throws SAXException(Code)

See Also:   org.xml.sax.ext.DeclHandler.externalEntityDecl(StringStringString)



getOutputFormat
public Properties getOutputFormat()(Code)

See Also:   Serializer.getOutputFormat



getOutputStream
public OutputStream getOutputStream()(Code)

See Also:   Serializer.getOutputStream



getWriter
public Writer getWriter()(Code)

See Also:   Serializer.getWriter



ignorableWhitespace
public void ignorableWhitespace(char[] arg0, int arg1, int arg2) throws SAXException(Code)

See Also:   org.xml.sax.ContentHandler.ignorableWhitespace(char[]intint)



indent
public void indent(int n) throws SAXException(Code)
Do nothing for SAX.



internalEntityDecl
public void internalEntityDecl(String arg0, String arg1) throws SAXException(Code)

See Also:   org.xml.sax.ext.DeclHandler.internalEntityDecl(StringString)



namespaceAfterStartElement
public void namespaceAfterStartElement(String prefix, String uri) throws SAXException(Code)
Send a namespace declaration in the output document. The namespace declaration will not be include if the namespace is already in scope with the same prefix.



popNamespace
protected boolean popNamespace(String prefix)(Code)
Undeclare the namespace that is currently pointed to by a given prefix. Inform SAX handler if prefix was previously mapped.



processingInstruction
public void processingInstruction(String target, String data) throws SAXException(Code)

See Also:   org.xml.sax.ContentHandler.processingInstruction(StringString)
See Also:   Send a processing instruction to the output document



reset
public boolean reset()(Code)
Try's to reset the super class and reset this class for re-use, so that you don't need to create a new serializer (mostly for performance reasons). true if the class was successfuly reset.
See Also:   Serializer.reset



serialize
public void serialize(Node node) throws IOException(Code)

See Also:   DOMSerializer.serialize(Node)



setDocumentLocator
public void setDocumentLocator(Locator arg0)(Code)

See Also:   org.xml.sax.ContentHandler.setDocumentLocator(Locator)



setEscaping
public boolean setEscaping(boolean escape) throws SAXException(Code)

See Also:   SerializationHandler.setEscaping(boolean)



setOutputFormat
public void setOutputFormat(Properties format)(Code)

See Also:   Serializer.setOutputFormat(Properties)



setOutputStream
public void setOutputStream(OutputStream output)(Code)

See Also:   Serializer.setOutputStream(OutputStream)



setWriter
public void setWriter(Writer writer)(Code)

See Also:   Serializer.setWriter(Writer)



skippedEntity
public void skippedEntity(String arg0) throws SAXException(Code)

See Also:   org.xml.sax.ContentHandler.skippedEntity(String)



startCDATA
public void startCDATA() throws SAXException(Code)



startElement
public void startElement(String elementNamespaceURI, String elementLocalName, String elementName) throws SAXException(Code)
Start an element in the output document. This might be an XML element (data type) or a CDATA section.



startElement
public void startElement(String elementName) throws SAXException(Code)



startElement
public void startElement(String namespaceURI, String localName, String name, Attributes atts) throws SAXException(Code)

See Also:   org.xml.sax.ContentHandler.startElement(StringStringStringAttributes)



startEntity
public void startEntity(String arg0) throws SAXException(Code)

See Also:   org.xml.sax.ext.LexicalHandler.startEntity(String)



startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)

See Also:   org.xml.sax.ContentHandler.startPrefixMapping(StringString)
Parameters:
  prefix - The prefix that maps to the URI
Parameters:
  uri - The URI for the namespace



startPrefixMapping
public boolean startPrefixMapping(String prefix, String uri, boolean shouldFlush) throws org.xml.sax.SAXException(Code)
Remember the prefix/uri mapping at the current nested element depth.
See Also:   org.xml.sax.ContentHandler.startPrefixMapping(StringString)
Parameters:
  prefix - The prefix that maps to the URI
Parameters:
  uri - The URI for the namespace
Parameters:
  shouldFlush - a flag indicating if the mapping applies to thecurrent element or an up coming child (not used).



Fields inherited from org.apache.xml.serializer.ToSAXHandler
protected LexicalHandler m_lexHandler(Code)(Java Doc)
protected ContentHandler m_saxHandler(Code)(Java Doc)
protected TransformStateSetter m_state(Code)(Java Doc)

Methods inherited from org.apache.xml.serializer.ToSAXHandler
public void addUniqueAttribute(String qName, String value, int flags) throws SAXException(Code)(Java Doc)
public void characters(String characters) throws SAXException(Code)(Java Doc)
public void characters(org.w3c.dom.Node node) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void closeCDATA() throws SAXException(Code)(Java Doc)
protected void closeStartTag() throws SAXException(Code)(Java Doc)
public void comment(String comment) throws SAXException(Code)(Java Doc)
public void error(SAXParseException exc) throws SAXException(Code)(Java Doc)
public void fatalError(SAXParseException exc) throws SAXException(Code)(Java Doc)
public void flushPending() throws SAXException(Code)(Java Doc)
boolean getShouldOutputNSAttr()(Code)(Java Doc)
public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc)
public boolean reset()(Code)(Java Doc)
public void setCdataSectionElements(Vector URI_and_localNames)(Code)(Java Doc)
public void setContentHandler(ContentHandler _saxHandler)(Code)(Java Doc)
public void setLexHandler(LexicalHandler _lexHandler)(Code)(Java Doc)
public void setShouldOutputNSAttr(boolean doOutputNSAttr)(Code)(Java Doc)
public void setTransformState(TransformStateSetter ts)(Code)(Java Doc)
public void startDTD(String arg0, String arg1, String arg2) throws SAXException(Code)(Java Doc)
protected void startDocumentInternal() throws SAXException(Code)(Java Doc)
public void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException(Code)(Java Doc)
public void startElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc)
public void startElement(String qName) throws SAXException(Code)(Java Doc)
public void warning(SAXParseException exc) throws SAXException(Code)(Java Doc)

Fields inherited from org.apache.xml.serializer.SerializerBase
protected char[] m_attrBuff(Code)(Java Doc)
protected AttributesImplSerializer m_attributes(Code)(Java Doc)
protected Vector m_cdataSectionElements(Code)(Java Doc)
protected boolean m_cdataTagOpen(Code)(Java Doc)
protected char[] m_charsBuff(Code)(Java Doc)
protected boolean m_doIndent(Code)(Java Doc)
protected ElemContext m_elemContext(Code)(Java Doc)
protected boolean m_inEntityRef(Code)(Java Doc)
protected boolean m_inExternalDTD(Code)(Java Doc)
protected int m_indentAmount(Code)(Java Doc)
protected boolean m_needToCallStartDocument(Code)(Java Doc)
boolean m_needToOutputDocTypeDecl(Code)(Java Doc)
protected NamespaceMappings m_prefixMap(Code)(Java Doc)
protected SourceLocator m_sourceLocator(Code)(Java Doc)
protected boolean m_standaloneWasSpecified(Code)(Java Doc)
protected SerializerTrace m_tracer(Code)(Java Doc)
protected java.io.Writer m_writer(Code)(Java Doc)

Methods inherited from org.apache.xml.serializer.SerializerBase
public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) throws SAXException(Code)(Java Doc)
public void addAttribute(String name, String value)(Code)(Java Doc)
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException(Code)(Java Doc)
public boolean addAttributeAlways(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute)(Code)(Java Doc)
public void addAttributes(Attributes atts) throws SAXException(Code)(Java Doc)
public void addXSLAttribute(String name, String value, String uri)(Code)(Java Doc)
public ContentHandler asContentHandler() throws IOException(Code)(Java Doc)
public DOMSerializer asDOMSerializer() throws IOException(Code)(Java Doc)
public void characters(org.w3c.dom.Node node) throws org.xml.sax.SAXException(Code)(Java Doc)
public void close()(Code)(Java Doc)
public void comment(String data) throws SAXException(Code)(Java Doc)
public void endEntity(String name) throws org.xml.sax.SAXException(Code)(Java Doc)
public void entityReference(String name) throws org.xml.sax.SAXException(Code)(Java Doc)
public void error(SAXParseException exc) throws SAXException(Code)(Java Doc)
public void fatalError(SAXParseException exc) throws SAXException(Code)(Java Doc)
protected void fireCDATAEvent(char[] chars, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void fireCharEvent(char[] chars, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void fireCommentEvent(char[] chars, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void fireEndDoc() throws org.xml.sax.SAXException(Code)(Java Doc)
protected void fireEndElem(String name) throws org.xml.sax.SAXException(Code)(Java Doc)
public void fireEndEntity(String name) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void fireEntityReference(String name) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void fireEscapingEvent(String name, String data) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void fireStartDoc() throws org.xml.sax.SAXException(Code)(Java Doc)
protected void fireStartElem(String elemName) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void fireStartEntity(String name) throws org.xml.sax.SAXException(Code)(Java Doc)
public String getDoctypePublic()(Code)(Java Doc)
public String getDoctypeSystem()(Code)(Java Doc)
public String getEncoding()(Code)(Java Doc)
public boolean getIndent()(Code)(Java Doc)
public int getIndentAmount()(Code)(Java Doc)
protected static String getLocalName(String qname)(Code)(Java Doc)
public String getMediaType()(Code)(Java Doc)
public NamespaceMappings getNamespaceMappings()(Code)(Java Doc)
public String getNamespaceURI(String qname, boolean isElement)(Code)(Java Doc)
public String getNamespaceURIFromPrefix(String prefix)(Code)(Java Doc)
public boolean getOmitXMLDeclaration()(Code)(Java Doc)
public String getPrefix(String namespaceURI)(Code)(Java Doc)
final protected static String getPrefixPart(String qname)(Code)(Java Doc)
public String getStandalone()(Code)(Java Doc)
public Transformer getTransformer()(Code)(Java Doc)
public String getVersion()(Code)(Java Doc)
final boolean inTemporaryOutputState()(Code)(Java Doc)
protected void initCDATA()(Code)(Java Doc)
protected boolean isCdataSection()(Code)(Java Doc)
public void namespaceAfterStartElement(String uri, String prefix) throws SAXException(Code)(Java Doc)
public void notationDecl(String arg0, String arg1, String arg2) throws SAXException(Code)(Java Doc)
protected String patchName(String qname)(Code)(Java Doc)
public boolean reset()(Code)(Java Doc)
public void setDTDEntityExpansion(boolean expand)(Code)(Java Doc)
public void setDoctype(String doctypeSystem, String doctypePublic)(Code)(Java Doc)
public void setDoctypePublic(String doctypePublic)(Code)(Java Doc)
public void setDoctypeSystem(String doctypeSystem)(Code)(Java Doc)
public void setDocumentLocator(Locator locator)(Code)(Java Doc)
public void setEncoding(String m_encoding)(Code)(Java Doc)
public void setIndent(boolean doIndent)(Code)(Java Doc)
public void setIndentAmount(int m_indentAmount)(Code)(Java Doc)
public void setMediaType(String mediaType)(Code)(Java Doc)
public void setNamespaceMappings(NamespaceMappings mappings)(Code)(Java Doc)
public void setOmitXMLDeclaration(boolean b)(Code)(Java Doc)
public void setSourceLocator(SourceLocator locator)(Code)(Java Doc)
public void setStandalone(String standalone)(Code)(Java Doc)
protected void setStandaloneInternal(String standalone)(Code)(Java Doc)
public void setTransformer(Transformer t)(Code)(Java Doc)
public void setVersion(String version)(Code)(Java Doc)
public void startDocument() throws org.xml.sax.SAXException(Code)(Java Doc)
protected void startDocumentInternal() throws org.xml.sax.SAXException(Code)(Java Doc)
public void unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3) throws SAXException(Code)(Java Doc)
public void warning(SAXParseException exc) throws SAXException(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.