public class XMLWriterContext extends XMLContext
| Modifier and Type | Field and Description |
|---|---|
protected java.io.Writer |
theWriter
The writer
|
localname, namespaceURI, previousContext, qname, theseAttributes, theStream| Constructor and Description |
|---|
XMLWriterContext(XMLStream theStream,
java.lang.String namespaceURI,
java.lang.String localname,
java.lang.String qname,
org.xml.sax.Attributes theseAttributes,
java.io.Writer writer)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected XMLContext |
beginTag(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Start a child tag.
|
protected void |
endTag()
End a child tag.
|
protected static java.lang.String |
escapeAttribute(java.lang.String value)
Convert a string to a value that's safe to include inside an attribute value
|
protected static void |
escapeCharData(char[] chars,
int start,
int length,
java.io.Writer out)
Escapes sequence of characters to output writer
|
void |
flush()
Flush the data to the underlying output stream
|
protected void |
tagContents(char[] ch,
int start,
int length)
This method is meant to be extended by classes that extend this class
|
characters, cleanup, endDocument, endElement, getAttribute, getLocalname, getNamespaceURI, getQname, startDocument, startElement, tagCleanuppublic XMLWriterContext(XMLStream theStream, java.lang.String namespaceURI, java.lang.String localname, java.lang.String qname, org.xml.sax.Attributes theseAttributes, java.io.Writer writer)
public void flush()
throws ManifoldCFException
ManifoldCFExceptionprotected void tagContents(char[] ch,
int start,
int length)
throws ManifoldCFException
tagContents in class XMLContextManifoldCFExceptionprotected XMLContext beginTag(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws ManifoldCFException, ServiceInterruption
beginTag in class XMLContextManifoldCFExceptionServiceInterruptionprotected void endTag()
throws ManifoldCFException,
ServiceInterruption
endTag in class XMLContextManifoldCFExceptionServiceInterruptionprotected static java.lang.String escapeAttribute(java.lang.String value)
protected static void escapeCharData(char[] chars,
int start,
int length,
java.io.Writer out)
throws java.io.IOException
java.io.IOException