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 () |
boolean | getReportNamespaceDeclarations () |
void | setReportNamespaceDeclarations (boolean declareNamespaces) |
boolean | getReportDTDEvents () |
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 |
void | output (Element node) throws JDOMException |
void | outputFragment (List nodes) throws JDOMException |
void | outputFragment (Content node) throws JDOMException |
JDOMLocator | getLocator () |
Protected Member Functions | |
XMLReader | createParser () throws Exception |
Most ContentHandler callbacks are supported. Both ignorableWhitespace()
and skippedEntity()
have not been implemented. The JDOMLocator
class returned by getLocator
exposes the current node being operated upon.
At this time, it is not possible to access notations and unparsed entity references in a DTD from JDOM. 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 and at this point the document exists in memory and is known to have no errors.
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.
|
|
Returns whether DTD events will be reported.
|
|
Returns whether attribute namespace declarations shall be reported as "xmlns" attributes.
|
|
This will output a single JDOM element as a document, firing off the SAX events that have been registered.
|
|
This will output a list of JDOM nodes as a document, firing off the SAX events that have been registered. Warning: This method may output ill-formed XML documents if the list contains top-level objects that are not legal at the document level (e.g. Text or CDATA nodes, multiple Element nodes, etc.). Thus, it should only be used to output document portions towards ContentHandlers capable of accepting such ill-formed documents (such as XSLT processors).
|
|
This will output the
|
|
This will output a single JDOM nodes as a fragment of an XML document, firing off the SAX events that have been registered. Warning: This method does not call the ContentHandler#setDocumentLocator, ContentHandler#startDocument and ContentHandler#endDocument callbacks on the ContentHandler. The user shall invoke these methods directly prior/after outputting the document fragments.
|
|
This will output a list of JDOM nodes as a fragment of an XML document, firing off the SAX events that have been registered. Warning: This method does not call the ContentHandler#setDocumentLocator, ContentHandler#startDocument and ContentHandler#endDocument callbacks on the ContentHandler. The user shall invoke these methods directly prior/after outputting the document fragments.
|
|
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
|