gnu.xml.pipeline
public class TextConsumer extends XMLWriter implements EventConsumer
Input must be well formed, and must include XML names (e.g. the prefixes and prefix declarations must be present), or the output of this class is undefined.
Version: $Date: 2001/10/23 17:42:25 $
See Also: NSFilter
Constructor Summary | |
---|---|
TextConsumer(Writer w, boolean isXhtml)
Constructs an event consumer which echoes its input as text,
optionally adhering to some basic XHTML formatting options
which increase interoperability with old (v3) browsers.
| |
TextConsumer(Writer w)
Constructs a consumer that writes its input as XML text.
| |
TextConsumer(OutputStream out)
Constructs a consumer that writes its input as XML text,
encoded in UTF-8. |
Method Summary | |
---|---|
ContentHandler | getContentHandler() EventConsumer Returns the document handler being used. |
DTDHandler | getDTDHandler() EventConsumer Returns the dtd handler being used. |
Object | getProperty(String propertyId) XMLReaderRetrieves a property (lexical and decl handlers) |
For the best interoperability, when writing as XHTML only ASCII characters are emitted; other characters are turned to entity or character references as needed, and no XML declaration is provided in the document.
Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2011-08-26.