Java Doc for ToXMLStream.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.ToStream
         org.apache.xml.serializer.ToXMLStream

ToXMLStream
final public class ToXMLStream extends ToStream (Code)
This class converts SAX or SAX-like calls to a serialized xml document. The xsl:output method is "xml". This class is used explicitly in code generated by XSLTC, so it is "public", but it should be viewed as internal or package private, this is not an API.


Field Summary
 booleanm_cdataTagOpen
    

Constructor Summary
public  ToXMLStream()
     Default constructor.

Method Summary
public  voidCopyFrom(ToXMLStream xmlListener)
     Copy properties from another SerializerToXML.
public  voidaddAttribute(String uri, String localName, String rawName, String type, String value, boolean xslAttribute)
     Add an attribute to the current element.
public  voidaddUniqueAttribute(String name, String value, int flags)
     This method is used to add an attribute to the currently open element.
public  voidendDocument()
     Receive notification of the end of a document.
public  voidendElement(String elemName)
    
public  voidendPreserving()
     Ends a whitespace preserving section.
public  voidentityReference(String name)
     Receive notivication of a entityReference.
public  voidnamespaceAfterStartElement(String prefix, String uri)
     This method is used to notify the serializer of a namespace mapping (or node) that applies to the current element whose startElement() call has already been seen. The official SAX startPrefixMapping(prefix,uri) is to define a mapping for a child element that is soon to be seen with a startElement() call.
public  voidprocessingInstruction(String target, String data)
     Receive notification of a processing instruction.
protected  booleanpushNamespace(String prefix, String uri)
     From XSLTC Declare a prefix to point to a namespace URI.
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  voidstartDocumentInternal()
     Receive notification of the beginning of a document.
public  voidstartPreserving()
     Starts a whitespace preserving section.

Field Detail
m_cdataTagOpen
boolean m_cdataTagOpen(Code)
remembers if we need to write out "]]>" to close the CDATA




Constructor Detail
ToXMLStream
public ToXMLStream()(Code)
Default constructor.




Method Detail
CopyFrom
public void CopyFrom(ToXMLStream xmlListener)(Code)
Copy properties from another SerializerToXML.
Parameters:
  xmlListener - non-null reference to a SerializerToXML object.



addAttribute
public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean xslAttribute) throws SAXException(Code)
Add an attribute to the current element.
Parameters:
  uri - the URI associated with the element name
Parameters:
  localName - local part of the attribute name
Parameters:
  rawName - prefix:localName
Parameters:
  type -
Parameters:
  value - the value of the attribute
Parameters:
  xslAttribute - true if this attribute is from an xsl:attribute,false if declared within the elements opening tag.
throws:
  SAXException -



addUniqueAttribute
public void addUniqueAttribute(String name, String value, int flags) throws SAXException(Code)
This method is used to add an attribute to the currently open element. The caller has guaranted that this attribute is unique, which means that it not been seen before and will not be seen again.
Parameters:
  name - the qualified name of the attribute
Parameters:
  value - the value of the attribute which can contain onlyASCII printable characters characters in the range 32 to 127 inclusive.
Parameters:
  flags - the bit values of this integer give optimization information.



endDocument
public void endDocument() throws org.xml.sax.SAXException(Code)
Receive notification of the end of a document.
throws:
  org.xml.sax.SAXException - Any SAX exception, possiblywrapping another exception.
throws:
  org.xml.sax.SAXException -



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

See Also:   ExtendedContentHandler.endElement(String)



endPreserving
public void endPreserving() throws org.xml.sax.SAXException(Code)
Ends a whitespace preserving section.
See Also:   ToXMLStream.startPreserving
throws:
  org.xml.sax.SAXException -



entityReference
public void entityReference(String name) throws org.xml.sax.SAXException(Code)
Receive notivication of a entityReference.
Parameters:
  name - The name of the entity.
throws:
  org.xml.sax.SAXException -



namespaceAfterStartElement
public void namespaceAfterStartElement(String prefix, String uri) throws SAXException(Code)
This method is used to notify the serializer of a namespace mapping (or node) that applies to the current element whose startElement() call has already been seen. The official SAX startPrefixMapping(prefix,uri) is to define a mapping for a child element that is soon to be seen with a startElement() call. The official SAX call does not apply to the current element, hence the reason for this method.



processingInstruction
public void processingInstruction(String target, String data) throws org.xml.sax.SAXException(Code)
Receive notification of a processing instruction.
Parameters:
  target - The processing instruction target.
Parameters:
  data - The processing instruction data, or null ifnone was supplied.
throws:
  org.xml.sax.SAXException - Any SAX exception, possiblywrapping another exception.
throws:
  org.xml.sax.SAXException -



pushNamespace
protected boolean pushNamespace(String prefix, String uri)(Code)
From XSLTC Declare a prefix to point to a namespace URI. Inform SAX handler if this is a new prefix mapping.



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.



startDocumentInternal
public void startDocumentInternal() throws org.xml.sax.SAXException(Code)
Receive notification of the beginning of a document.
throws:
  org.xml.sax.SAXException - Any SAX exception, possiblywrapping another exception.
throws:
  org.xml.sax.SAXException -



startPreserving
public void startPreserving() throws org.xml.sax.SAXException(Code)
Starts a whitespace preserving section. All characters printed within a preserving section are printed without indentation and without consolidating multiple spaces. This is equivalent to the xml:space="preserve" attribute. Only XML and HTML serializers need to support this method.

The contents of the whitespace preserving section will be delivered through the regular characters event.
throws:
  org.xml.sax.SAXException -




Fields inherited from org.apache.xml.serializer.ToStream
protected boolean m_cdataStartCalled(Code)(Java Doc)
protected CharInfo m_charInfo(Code)(Java Doc)
protected BoolStack m_disableOutputEscapingStates(Code)(Java Doc)
EncodingInfo m_encodingInfo(Code)(Java Doc)
protected Properties m_format(Code)(Java Doc)
protected boolean m_inDoctype(Code)(Java Doc)
boolean m_isUTF8(Code)(Java Doc)
protected boolean m_ispreserve(Code)(Java Doc)
protected boolean m_isprevtext(Code)(Java Doc)
protected char[] m_lineSep(Code)(Java Doc)
protected int m_lineSepLen(Code)(Java Doc)
protected boolean m_lineSepUse(Code)(Java Doc)
protected BoolStack m_preserves(Code)(Java Doc)
boolean m_shouldFlush(Code)(Java Doc)
protected boolean m_spaceBeforeClose(Code)(Java Doc)
boolean m_startNewLine(Code)(Java Doc)

Methods inherited from org.apache.xml.serializer.ToStream
protected int accumDefaultEntity(java.io.Writer writer, char ch, int i, char[] chars, int len, boolean fromTextNode, boolean escLF) throws IOException(Code)(Java Doc)
protected int accumDefaultEscape(Writer writer, char ch, int i, char[] chars, int len, boolean fromTextNode, boolean escLF) throws IOException(Code)(Java Doc)
public boolean addAttributeAlways(String uri, String localName, String rawName, String type, String value, boolean xslAttribute)(Code)(Java Doc)
public void attributeDecl(String eName, String aName, String type, String valueDefault, String value) throws SAXException(Code)(Java Doc)
protected void cdata(char ch, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc)
public void characters(char chars, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc)
public void characters(String s) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void charactersRaw(char ch, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void closeCDATA() throws org.xml.sax.SAXException(Code)(Java Doc)
protected void closeStartTag() throws SAXException(Code)(Java Doc)
public void comment(char ch, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc)
public void elementDecl(String name, String model) throws SAXException(Code)(Java Doc)
public void endCDATA() throws org.xml.sax.SAXException(Code)(Java Doc)
public void endDTD() throws org.xml.sax.SAXException(Code)(Java Doc)
public void endElement(String namespaceURI, String localName, String name) throws org.xml.sax.SAXException(Code)(Java Doc)
public void endElement(String name) throws org.xml.sax.SAXException(Code)(Java Doc)
public void endNonEscaping() throws org.xml.sax.SAXException(Code)(Java Doc)
public void endPrefixMapping(String prefix) throws org.xml.sax.SAXException(Code)(Java Doc)
protected String ensureAttributesNamespaceIsDeclared(String ns, String localName, String rawName) throws org.xml.sax.SAXException(Code)(Java Doc)
void ensurePrefixIsDeclared(String ns, String rawName) throws org.xml.sax.SAXException(Code)(Java Doc)
protected boolean escapingNotNeeded(char ch)(Code)(Java Doc)
public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc)
protected void firePseudoAttributes()(Code)(Java Doc)
public void flushPending() throws SAXException(Code)(Java Doc)
final protected void flushWriter() throws org.xml.sax.SAXException(Code)(Java Doc)
public int getIndentAmount()(Code)(Java Doc)
public Properties getOutputFormat()(Code)(Java Doc)
public OutputStream getOutputStream()(Code)(Java Doc)
public Writer getWriter()(Code)(Java Doc)
public void ignorableWhitespace(char ch, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc)
protected void indent(int depth) throws IOException(Code)(Java Doc)
protected void indent() throws IOException(Code)(Java Doc)
protected synchronized void init(OutputStream output, Properties format, boolean defaultProperties) throws UnsupportedEncodingException(Code)(Java Doc)
public void internalEntityDecl(String name, String value) throws SAXException(Code)(Java Doc)
public void notationDecl(String name, String pubID, String sysID) throws SAXException(Code)(Java Doc)
void outputDocTypeDecl(String name, boolean closeDecl) throws SAXException(Code)(Java Doc)
void outputEntityDecl(String name, String value) throws IOException(Code)(Java Doc)
final protected void outputLineSep() throws IOException(Code)(Java Doc)
public void processAttributes(java.io.Writer writer, int nAttrs) throws IOException, SAXException(Code)(Java Doc)
public boolean reset()(Code)(Java Doc)
public void serialize(Node node) throws IOException(Code)(Java Doc)
public void setCdataSectionElements(Vector URI_and_localNames)(Code)(Java Doc)
public void setContentHandler(ContentHandler ch)(Code)(Java Doc)
public void setDTDEntityExpansion(boolean expand)(Code)(Java Doc)
public void setEncoding(String encoding)(Code)(Java Doc)
public boolean setEscaping(boolean escape)(Code)(Java Doc)
public void setIndentAmount(int m_indentAmount)(Code)(Java Doc)
public boolean setLineSepUse(boolean use_sytem_line_break)(Code)(Java Doc)
public void setOutputFormat(Properties format)(Code)(Java Doc)
public void setOutputStream(OutputStream output)(Code)(Java Doc)
public void setTransformer(Transformer transformer)(Code)(Java Doc)
public void setWriter(Writer writer)(Code)(Java Doc)
protected boolean shouldIndent()(Code)(Java Doc)
public void skippedEntity(String name) throws org.xml.sax.SAXException(Code)(Java Doc)
public void startCDATA() throws org.xml.sax.SAXException(Code)(Java Doc)
public void startDTD(String name, String publicId, String systemId) throws org.xml.sax.SAXException(Code)(Java Doc)
public void startElement(String namespaceURI, String localName, String name, Attributes atts) throws org.xml.sax.SAXException(Code)(Java Doc)
public void startElement(String elementNamespaceURI, String elementLocalName, String elementName) throws SAXException(Code)(Java Doc)
public void startElement(String elementName) throws SAXException(Code)(Java Doc)
public void startEntity(String name) throws org.xml.sax.SAXException(Code)(Java Doc)
public void startNonEscaping() throws org.xml.sax.SAXException(Code)(Java Doc)
public void startPrefixMapping(String prefix, String uri) throws org.xml.sax.SAXException(Code)(Java Doc)
public boolean startPrefixMapping(String prefix, String uri, boolean shouldFlush) throws org.xml.sax.SAXException(Code)(Java Doc)
public void unparsedEntityDecl(String name, String pubID, String sysID, String notationName) throws SAXException(Code)(Java Doc)
public void writeAttrString(Writer writer, String string, String encoding) throws IOException(Code)(Java Doc)
void writeNormalizedChars(char ch, int start, int length, boolean isCData, boolean useSystemLineSeparator) throws IOException, org.xml.sax.SAXException(Code)(Java Doc)
protected int writeUTF16Surrogate(char c, char ch, int i, int end) throws IOException(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.