| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SAXOutputter
takes a JDOM tree and fires SAX2 events.
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.
Constructor Summary | |
SAXOutputter(ContentHandler contentHandler) This will create a SAXOutputter with the
specified ContentHandler . | |
SAXOutputter(ContentHandler contentHandler, ErrorHandler errorHandler, DTDHandler dtdHandler, EntityResolver entityResolver) This will create a SAXOutputter with the
specified SAX2 handlers. |
Method Summary | |
void | output(Document document) This will output the JDOM Document , firing off the
SAX events that have been registered. |
void | setContentHandler(ContentHandler contentHandler) This will set the ContentHandler . |
void | setDTDHandler(DTDHandler dtdHandler) This will set the DTDHandler . |
void | setEntityResolver(EntityResolver entityResolver) This will set the EntityResolver . |
void | setErrorHandler(ErrorHandler errorHandler) This will set the ErrorHandler . |
Constructor Detail |
public SAXOutputter(ContentHandler contentHandler)
This will create a SAXOutputter
with the
specified ContentHandler
.
ContentHandler
callback methodspublic SAXOutputter(ContentHandler contentHandler, ErrorHandler errorHandler, DTDHandler dtdHandler, EntityResolver entityResolver)
This will create a SAXOutputter
with the
specified SAX2 handlers. At this time, only ContentHandler
and EntityResolver
are supported.
ContentHandler
callback methodsErrorHandler
callback methodsDTDHandler
callback methodsEntityResolver
callback methodsMethod Detail |
public void output(Document document)
throws org.jdom.JDOMException
This will output the JDOM Document
, firing off the
SAX events that have been registered.
JDOM Document
to output.public void setContentHandler(ContentHandler contentHandler)
This will set the ContentHandler
.
ContentHandler
callback methods.public void setDTDHandler(DTDHandler dtdHandler)
This will set the DTDHandler
.
DTDHandler
callback methods.public void setEntityResolver(EntityResolver entityResolver)
This will set the EntityResolver
.
public void setErrorHandler(ErrorHandler errorHandler)
This will set the ErrorHandler
.
ErrorHandler
callback methods.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |