Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.xml.util.XMLWriter
gnu.xml.pipeline.TextConsumer
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.
NSFilter
, WellFormednessFilter
Constructor Summary | |
| |
| |
|
Method Summary | |
ContentHandler |
|
DTDHandler |
|
Object |
|
public TextConsumer(OutputStream out) throws IOException
Constructs a consumer that writes its input as XML text, encoded in UTF-8. XHTML rules are not followed.
public TextConsumer(Writer w) throws IOException
Constructs a consumer that writes its input as XML text. XHTML rules are not followed.
public TextConsumer(Writer w, boolean isXhtml) throws IOException
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.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.
public ContentHandler getContentHandler()
EventConsumer Returns the document handler being used.
- Specified by:
- getContentHandler in interface EventConsumer
public DTDHandler getDTDHandler()
EventConsumer Returns the dtd handler being used.
- Specified by:
- getDTDHandler in interface EventConsumer
public Object getProperty(String propertyId) throws SAXNotRecognizedException
XMLReaderRetrieves a property (lexical and decl handlers)
- Specified by:
- getProperty in interface EventConsumer