Public Member Functions | |
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 | setReportDTDEvents (boolean reportDtdEvents) |
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 |
void | output (List nodes) throws JDOMException |
JDOMLocator | getLocator () |
Protected Member Functions | |
void | handleError (JDOMException exception) throws JDOMException |
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.
Jason Hunter
Fred Trimble
Bradley S. Huffman
|
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
|
|
Returns a JDOMLocator object referencing the node currently being processed by this outputter. The returned object is a snapshot of the location information and can thus safely be memorized for later use.
This method allows direct access to the location information maintained by SAXOutputter without requiring to implement
Note that location information is only available while SAXOutputter is outputting nodes. Hence this method should only be used by objects taking part in the output processing such as
|
|
This will look up the value of a SAX property.
|
|
Notifies the registered SAX error handler (if any) of an input processing error. The error handler can choose to absorb the error and let the processing continue.
|
|
This will output a list of JDOM nodes, firing off the SAX events that have been registered. Warning: This method outputs ill-formed XML documents and should only be used to output document portions towards processors (such as XSLT processors) capable of accepting such ill-formed documents.
|
|
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 to report DTD events to SAX DeclHandlers and LexicalHandlers if these handlers are registered and the document to output includes a DocType declaration.
|
|
This will define whether attribute namespace declarations shall be reported as "xmlns" attributes. This flag defaults to
|