|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.serializer.SerializerBase
org.apache.xml.serializer.ToStream
org.apache.xml.serializer.ToXMLStream
public class ToXMLStream
Field Summary |
---|
Fields inherited from interface org.apache.xml.serializer.ExtendedContentHandler |
---|
HTML_ATTREMPTY, HTML_ATTRURL, NO_BAD_CHARS |
Fields inherited from interface org.apache.xml.serializer.SerializerConstants |
---|
BEGCDATA, CDATA_CONTINUE, CDATA_DELIMITER_CLOSE, CDATA_DELIMITER_OPEN, CNTCDATA, DEFAULT_SAX_SERIALIZER, EMPTYSTRING, ENDCDATA, ENTITY_AMP, ENTITY_CRLF, ENTITY_GT, ENTITY_LT, ENTITY_QUOT, XML_PREFIX, XMLNS_PREFIX, XMLNS_URI |
Constructor Summary | |
---|---|
ToXMLStream()
Default constructor. |
Method Summary | |
---|---|
void |
addAttribute(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName,
java.lang.String type,
java.lang.String value)
Adds the given attribute to the set of collected attributes , but only if there is a currently open element. |
void |
addUniqueAttribute(java.lang.String name,
java.lang.String value,
int flags)
This method is used to add an attribute to the currently open element. |
void |
CopyFrom(ToXMLStream xmlListener)
Copy properties from another SerializerToXML. |
void |
endDocument()
Receive notification of the end of a document. |
void |
endElement(java.lang.String elemName)
Receive notification of the end of an element. |
void |
endPreserving()
Ends a whitespace preserving section. |
void |
entityReference(java.lang.String name)
Receive notivication of a entityReference. |
void |
namespaceAfterStartElement(java.lang.String prefix,
java.lang.String uri)
From XSLTC Related to startPrefixMapping ??? |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Receive notification of a processing instruction. |
boolean |
reset()
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). |
void |
startDocumentInternal()
Receive notification of the beginning of a document. |
void |
startPreserving()
Starts a whitespace preserving section. |
Methods inherited from class org.apache.xml.serializer.SerializerBase |
---|
addAttribute, addAttributes, asContentHandler, asDOMSerializer, characters, close, comment, endEntity, error, fatalError, fireEndEntity, getDoctypePublic, getDoctypeSystem, getEncoding, getIndent, getMediaType, getNamespaceMappings, getNamespaceURI, getNamespaceURIFromPrefix, getOmitXMLDeclaration, getPrefix, getStandalone, getTransformer, getVersion, setDoctype, setDoctypePublic, setDoctypeSystem, setDocumentLocator, setEncoding, setIndent, setMediaType, setNamespaceMappings, setOmitXMLDeclaration, setSourceLocator, setStandalone, setVersion, startDocument, warning |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToXMLStream()
Method Detail |
---|
public void CopyFrom(ToXMLStream xmlListener)
xmlListener
- non-null reference to a SerializerToXML object.public void startDocumentInternal() throws SAXException
SAXException
- Any SAX exception, possibly
wrapping another exception.
SAXException
public void endDocument() throws SAXException
SAXException
- Any SAX exception, possibly
wrapping another exception.
SAXException
ContentHandler.startDocument()
public void startPreserving() throws SAXException
The contents of the whitespace preserving section will be delivered through the regular characters event.
SAXException
public void endPreserving() throws SAXException
SAXException
startPreserving()
public void processingInstruction(java.lang.String target, java.lang.String data) throws SAXException
target
- The processing instruction target.data
- The processing instruction data, or null if
none was supplied.
SAXException
- Any SAX exception, possibly
wrapping another exception.
SAXException
public void entityReference(java.lang.String name) throws SAXException
entityReference
in interface ExtendedContentHandler
entityReference
in class SerializerBase
name
- The name of the entity.
SAXException
public void addUniqueAttribute(java.lang.String name, java.lang.String value, int flags) throws SAXException
name
- the qualified name of the attributevalue
- the value of the attribute which can contain only
ASCII printable characters characters in the range 32 to 127 inclusive.flags
- the bit values of this integer give optimization information.
SAXException
public void addAttribute(java.lang.String uri, java.lang.String localName, java.lang.String rawName, java.lang.String type, java.lang.String value) throws SAXException
SerializerBase
addAttribute
in interface ExtendedContentHandler
addAttribute
in class SerializerBase
uri
- the URI of the attributelocalName
- the local name of the attributerawName
- the qualified name of the attributetype
- the type of the attribute (probably CDATA)value
- the value of the attribute
SAXException
ExtendedContentHandler.addAttribute(String, String, String, String, String)
public void endElement(java.lang.String elemName) throws SAXException
ToStream
endElement
in interface ExtendedContentHandler
endElement
in class ToStream
elemName
- The element type name
SAXException
ExtendedContentHandler.endElement(String)
public void namespaceAfterStartElement(java.lang.String prefix, java.lang.String uri) throws SAXException
namespaceAfterStartElement
in interface ExtendedContentHandler
namespaceAfterStartElement
in class SerializerBase
prefix
- the URI of the namespaceuri
- the prefix associated with the given URI.
SAXException
ExtendedContentHandler.namespaceAfterStartElement(String, String)
public boolean reset()
reset
in interface Serializer
reset
in class ToStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |