public class AbstractSAXOutputProcessor extends AbstractOutputProcessor implements SAXOutputProcessor
Most ContentHandler callbacks are supported. Neither
ignorableWhitespace() nor skippedEntity() have been
implemented.
At this time, it is not possible to access notations and unparsed entity
references in a DTD from JDOM. Therefore, full DTDHandler
call-backs have not been implemented yet.
The ErrorHandler call-backs 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.
| 构造器和说明 |
|---|
AbstractSAXOutputProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
process(SAXTarget out,
Format format,
CDATA cdata)
Print out a
node. |
void |
process(SAXTarget out,
Format format,
Comment comment)
Print out a
. |
void |
process(SAXTarget out,
Format format,
DocType doctype)
Print out the
. |
void |
process(SAXTarget out,
Format format,
Document doc)
This will print the
to the given SAXTarget. |
void |
process(SAXTarget out,
Format format,
Element element)
|
void |
process(SAXTarget out,
Format format,
EntityRef entity)
Print out a
. |
void |
process(SAXTarget out,
Format format,
java.util.List<? extends Content> list)
This will handle printing out a list of nodes.
|
void |
process(SAXTarget out,
Format format,
ProcessingInstruction pi)
Print out a
. |
void |
process(SAXTarget out,
Format format,
Text text)
Print out a
node. |
void |
processAsDocument(SAXTarget out,
Format format,
Element node)
|
void |
processAsDocument(SAXTarget out,
Format format,
java.util.List<? extends Content> nodes)
This will handle printing out a list of nodes thats encapsulated in
start/end Document SAX events.
|
public void process(SAXTarget out, Format format, Document doc) throws JDOMException
SAXOutputProcessorDocument to the given SAXTarget.
Warning: using your own SAXTarget may cause the outputter's preferred character encoding to be ignored. If you use encodings other than UTF-8, we recommend using the method that takes an OutputStream instead.
process 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output styledoc - Document to format.JDOMException - if there is an issue encountered during output.public void process(SAXTarget out, Format format, DocType doctype) throws JDOMException
SAXOutputProcessorDocType.process 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output styledoctype - DocType to output.JDOMException - if there is an issue encountered during output.public void process(SAXTarget out, Format format, Element element) throws JDOMException
SAXOutputProcessorprocess 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output styleelement - Element to output.JDOMException - if there is an issue encountered during output.public void process(SAXTarget out, Format format, java.util.List<? extends Content> list) throws JDOMException
SAXOutputProcessorprocess 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output stylelist - List of nodes.JDOMException - if there is an issue encountered during output.public void process(SAXTarget out, Format format, CDATA cdata) throws JDOMException
SAXOutputProcessorCDATA node.process 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output stylecdata - CDATA to output.JDOMException - if there is an issue encountered during output.public void process(SAXTarget out, Format format, Text text) throws JDOMException
SAXOutputProcessorText node. Perfoms the necessary entity
escaping and whitespace stripping.process 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output styletext - Text to output.JDOMException - if there is an issue encountered during output.public void process(SAXTarget out, Format format, Comment comment) throws JDOMException
SAXOutputProcessorComment.process 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output stylecomment - Comment to output.JDOMException - if there is an issue encountered during output.public void process(SAXTarget out, Format format, ProcessingInstruction pi) throws JDOMException
SAXOutputProcessorProcessingInstruction.process 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output stylepi - ProcessingInstruction to output.JDOMException - if there is an issue encountered during output.public void process(SAXTarget out, Format format, EntityRef entity) throws JDOMException
SAXOutputProcessorEntityRef.process 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output styleentity - EntityRef to output.JDOMException - if there is an issue encountered during output.public void processAsDocument(SAXTarget out, Format format, java.util.List<? extends Content> nodes) throws JDOMException
SAXOutputProcessorprocessAsDocument 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output stylenodes - List of nodes.JDOMException - if there is an issue encountered during output.public void processAsDocument(SAXTarget out, Format format, Element node) throws JDOMException
SAXOutputProcessorElement encapsulated in start/end
Document SAX events, including its Attributes, and
all contained (child) elements, etc.processAsDocument 在接口中 SAXOutputProcessorout - SAXTarget to use.format - Format instance specifying output stylenode - Element to output.JDOMException - if there is an issue encountered during output.