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, tagCleanup
public 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
ManifoldCFException
protected void tagContents(char[] ch, int start, int length) throws ManifoldCFException
tagContents
in class XMLContext
ManifoldCFException
protected 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 XMLContext
ManifoldCFException
ServiceInterruption
protected void endTag() throws ManifoldCFException, ServiceInterruption
endTag
in class XMLContext
ManifoldCFException
ServiceInterruption
protected 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