Public Methods | |
SAXOutputter () | |
SAXOutputter (ContentHandler contentHandler) | |
SAXOutputter (ContentHandler contentHandler, ErrorHandler errorHandler, DTDHandler dtdHandler, EntityResolver entityResolver) | |
SAXOutputter (ContentHandler contentHandler, ErrorHandler errorHandler, DTDHandler dtdHandler, EntityResolver entityResolver, LexicalHandler lexicalHandler) | |
void | setContentHandler (ContentHandler contentHandler) |
ContentHandler | getContentHandler () |
void | setErrorHandler (ErrorHandler errorHandler) |
ErrorHandler | getErrorHandler () |
void | setDTDHandler (DTDHandler dtdHandler) |
DTDHandler | getDTDHandler () |
void | setEntityResolver (EntityResolver entityResolver) |
EntityResolver | getEntityResolver () |
void | setLexicalHandler (LexicalHandler lexicalHandler) |
LexicalHandler | getLexicalHandler () |
void | setDeclHandler (DeclHandler declHandler) |
DeclHandler | getDeclHandler () |
void | setReportNamespaceDeclarations (boolean declareNamespaces) |
void | setFeature (String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException |
boolean | getFeature (String name) throws SAXNotRecognizedException, SAXNotSupportedException |
void | setProperty (String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException |
Object | getProperty (String name) throws SAXNotRecognizedException, SAXNotSupportedException |
void | output (Document document) throws JDOMException |
Protected Methods | |
XMLReader | createParser () throws Exception |
SAXOutputter
takes a JDOM tree and fires SAX2 events.
Most ContentHandler
callbacks are supported. Both ignorableWhitespace
and skippedEntity
have not been implemented. The setDocumentLocator
callback has been implemented, but the locator object always returns -1 for getColumnNumber
and getLineNumber
.
The EntityResolver
callback resolveEntity
has been implemented for DTDs.
At this time, it is not possible to access notations and unparsed entity references in a DTD from a JDOM tree. Therefore, DTDHandler
callbacks have not been implemented yet.
The ErrorHandler
callbacks have not been implemented, since these are supposed to be invoked when the document is parsed. However, the document has already been parsed in order to create the JDOM tree.
|
This will create a |
|
This will create a
|
|
This will create a
|
|
This will create a
|
|
Creates a SAX XMLReader.
|
|
Returns the registered
|
|
Return the registered
|
|
Return the registered
|
|
Return the registered
|
|
Return the registered
|
|
This will look up the value of a SAX feature.
|
|
Return the registered
|
|
This will look up the value of a SAX property.
|
|
This will output the
|
|
This will set the
|
|
This will set the
|
|
This will set the
|
|
This will set the
|
|
This will set the
|
|
This will set the state of a SAX feature. All XMLReaders are required to support setting to true and to false. SAXOutputter currently supports the following SAX core features:
|
|
This will set the
|
|
This will set the value of a SAX property. This method is also the standard mechanism for setting extended handlers. SAXOutputter currently supports the following SAX properties:
|
|
This will define whether attribute namespace declarations shall be reported as "xmlns" attributes. This flag defaults to
|