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
SAXOutputProcessor
Document
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
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
DocType
.process
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
process
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
process
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
CDATA
node.process
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
Text
node. Perfoms the necessary entity
escaping and whitespace stripping.process
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
Comment
.process
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
ProcessingInstruction
.process
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
EntityRef
.process
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
processAsDocument
在接口中 SAXOutputProcessor
out
- 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
SAXOutputProcessor
Element
encapsulated in start/end
Document SAX events, including its Attribute
s, and
all contained (child) elements, etc.processAsDocument
在接口中 SAXOutputProcessor
out
- SAXTarget
to use.format
- Format
instance specifying output stylenode
- Element
to output.JDOMException
- if there is an issue encountered during output.