org.apache.xml.serializer
public final class ToUnknownStream extends SerializerBase
UNKNOWN: internal
Constructor Summary | |
---|---|
ToUnknownStream()
Default constructor.
|
Method Summary | |
---|---|
void | addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute)
Adds an attribute to the currenly open tag |
void | addAttribute(String rawName, String value)
Adds an attribute to the currenly open tag |
void | addAttributes(Attributes atts) |
void | addUniqueAttribute(String rawName, String value, int flags)
Adds a unique attribute to the currenly open tag |
ContentHandler | asContentHandler() |
Object | asDOM3Serializer() |
DOMSerializer | asDOMSerializer() |
void | attributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4)
Pass the call on to the underlying handler |
void | characters(String chars)
Converts the String to a character array and calls the SAX method
characters(char[],int,int);
|
void | characters(char[] characters, int offset, int length)
Pass the call on to the underlying handler |
void | close() |
void | comment(String comment)
Pass the call on to the underlying handler |
void | comment(char[] ch, int start, int length)
Pass the call on to the underlying handler |
void | elementDecl(String arg0, String arg1)
Pass the call on to the underlying handler |
void | endCDATA()
Pass the call on to the underlying handler |
void | endDocument()
Pass the call on to the underlying handler |
void | endDTD()
Pass the call on to the underlying handler |
void | endElement(String elementName)
Pass the call on to the underlying handler |
void | endElement(String namespaceURI, String localName, String qName)
Pass the call on to the underlying handler |
void | endEntity(String name)
Pass the call on to the underlying handler |
void | endPrefixMapping(String prefix)
Pass the call on to the underlying handler |
void | entityReference(String entityName) |
void | externalEntityDecl(String name, String publicId, String systemId)
Pass the call on to the underlying handler |
void | flushPending() |
String | getDoctypePublic()
Pass the call on to the underlying handler |
String | getDoctypeSystem()
Pass the call on to the underlying handler |
String | getEncoding()
Pass the call on to the underlying handler |
boolean | getIndent()
Pass the call on to the underlying handler |
int | getIndentAmount()
Pass the call on to the underlying handler |
String | getMediaType()
Pass the call on to the underlying handler |
NamespaceMappings | getNamespaceMappings()
Get the current namespace mappings.
|
String | getNamespaceURI(String qname, boolean isElement) |
String | getNamespaceURIFromPrefix(String prefix) |
boolean | getOmitXMLDeclaration()
Pass the call on to the underlying handler |
Properties | getOutputFormat() |
OutputStream | getOutputStream() |
String | getPrefix(String namespaceURI) |
String | getStandalone()
Pass the call on to the underlying handler |
Transformer | getTransformer() |
String | getVersion()
Pass the call on to the underlying handler |
Writer | getWriter() |
void | ignorableWhitespace(char[] ch, int start, int length)
Pass the call on to the underlying handler |
void | internalEntityDecl(String arg0, String arg1)
Pass the call on to the underlying handler |
void | namespaceAfterStartElement(String prefix, String uri)
This method is used when a prefix/uri namespace mapping
is indicated after the element was started with a
startElement() and before and endElement().
startPrefixMapping(prefix,uri) would be used before the
startElement() call. |
void | processingInstruction(String target, String data)
Pass the call on to the underlying handler |
boolean | reset()
passes the call on to the underlying HTML or XML handler |
void | serialize(Node node)
Converts the DOM node to output |
void | setCdataSectionElements(Vector URI_and_localNames) |
void | setContentHandler(ContentHandler ch) |
void | setDoctype(String system, String pub) |
void | setDoctypePublic(String doctype)
Set the doctype in the underlying XML handler. |
void | setDoctypeSystem(String doctype)
Set the doctype in the underlying XML handler. |
void | setDocumentLocator(Locator locator)
Pass the call on to the underlying handler |
void | setEncoding(String encoding)
Pass the call on to the underlying handler |
boolean | setEscaping(boolean escape) |
void | setIndent(boolean indent)
Pass the call on to the underlying handler |
void | setIndentAmount(int value)
Pass the call on to the underlying handler |
void | setMediaType(String mediaType) |
void | setOmitXMLDeclaration(boolean b)
Pass the call on to the underlying handler |
void | setOutputFormat(Properties format)
Set the properties of the handler |
void | setOutputStream(OutputStream output)
Sets the output stream to write to |
void | setSourceLocator(SourceLocator locator)
This method is used to set the source locator, which might be used to
generated an error message. |
void | setStandalone(String standalone)
Pass the call on to the underlying handler |
void | setTransformer(Transformer t) |
void | setVersion(String version)
This method cannot be cached because default is different in
HTML and XML (we need more than a boolean). |
void | setWriter(Writer writer)
Sets the writer to write to |
void | skippedEntity(String name)
Pass the call on to the underlying handler |
void | startCDATA()
Pass the call on to the underlying handler |
void | startDocument() |
void | startDTD(String name, String publicId, String systemId)
Pass the call on to the underlying handler |
void | startElement(String qName) |
void | startElement(String namespaceURI, String localName, String qName) |
void | startElement(String namespaceURI, String localName, String elementName, Attributes atts) |
void | startEntity(String name)
Pass the call on to the underlying handler |
void | startPrefixMapping(String prefix, String uri) |
boolean | startPrefixMapping(String prefix, String uri, boolean shouldFlush) |
Parameters: uri the URI of a namespace localName the attribute name, without prefix rawName the attribute name, with prefix (if any) type the type of the attribute, typically "CDATA" value the value of the parameter XSLAttribute true if this attribute is coming from an xsl:attribute element
See Also: ExtendedContentHandler
Parameters: rawName the attribute name, with prefix (if any) value the value of the parameter
See Also: ExtendedContentHandler
See Also: addAttributes
Returns: the wrapped XML or HTML handler
See Also: asContentHandler
See Also: asDOM3Serializer
See Also: asDOMSerializer
See Also: org.xml.sax.ext.DeclHandler#attributeDecl(String, String, String, String, String)
See Also: characters
See Also: org.xml.sax.ContentHandler#characters(char[], int, int)
See Also: close
See Also: comment
See Also: org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
See Also: org.xml.sax.ext.DeclHandler#elementDecl(String, String)
See Also: org.xml.sax.ext.LexicalHandler#endCDATA()
See Also: org.xml.sax.ContentHandler#endDocument()
See Also: org.xml.sax.ext.LexicalHandler#endDTD()
See Also: endElement
See Also: org.xml.sax.ContentHandler#endElement(String, String, String)
See Also: org.xml.sax.ext.LexicalHandler#endEntity(String)
See Also: org.xml.sax.ContentHandler#endPrefixMapping(String)
See Also: ExtendedContentHandler
See Also: org.xml.sax.ext.DeclHandler#externalEntityDecl(String, String, String)
See Also: flushPending
See Also: getDoctypePublic
See Also: getDoctypeSystem
See Also: getEncoding
See Also: getIndent
See Also: getIndentAmount
See Also: getMediaType
See Also: getNamespaceMappings
See Also: ExtendedContentHandler
See Also: getOmitXMLDeclaration
Returns: the properties of the underlying handler
See Also: getOutputFormat
Returns: the OutputStream of the underlying XML or HTML handler
See Also: getOutputStream
See Also: ExtendedContentHandler
See Also: getStandalone
See Also: getVersion
Returns: the Writer of the underlying XML or HTML handler
See Also: getWriter
See Also: org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int)
See Also: org.xml.sax.ext.DeclHandler#internalEntityDecl(String, String)
Parameters: uri the URI of the namespace prefix the prefix associated with the given URI.
See Also: ExtendedContentHandler
See Also: org.xml.sax.ContentHandler#processingInstruction(String, String)
Returns: ???
See Also: reset
Parameters: URI_and_localNames Vector a list of pairs of URI/localName specified in the cdata-section-elements attribute.
See Also: SerializationHandler
See Also: setContentHandler
See Also: XSLOutputAttributes
Parameters: doctype the public doctype to set
See Also: setDoctypePublic
Parameters: doctype the system doctype to set
See Also: setDoctypeSystem
See Also: org.xml.sax.ContentHandler#setDocumentLocator(Locator)
See Also: setEncoding
See Also: SerializationHandler
See Also: XSLOutputAttributes
See Also: setMediaType
See Also: XSLOutputAttributes
Parameters: format the output properties to set
See Also: setOutputFormat
Parameters: output the OutputStream to write to
See Also: setOutputStream
Parameters: locator the source locator
See Also: setSourceLocator
See Also: setStandalone
Parameters: writer the writer to write to
See Also: setWriter
See Also: org.xml.sax.ContentHandler#skippedEntity(String)
See Also: org.xml.sax.ext.LexicalHandler#startCDATA()
See Also: org.xml.sax.ContentHandler#startDocument()
See Also: org.xml.sax.ext.LexicalHandler#startDTD(String, String, String)
See Also: org.xml.sax.ext.LexicalHandler#startEntity(String)
Parameters: prefix The prefix that maps to the URI uri The URI for the namespace
See Also: org.xml.sax.ContentHandler#startPrefixMapping(String, String)