public class XMLWriterContext extends XMLContext
| Modifier and Type | Field and Description |
|---|---|
protected Writer |
theWriter
The writer
|
localname, namespaceURI, previousContext, qname, theseAttributes, theStream| Constructor and Description |
|---|
XMLWriterContext(XMLStream theStream,
String namespaceURI,
String localname,
String qname,
Attributes theseAttributes,
Writer writer)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected XMLContext |
beginTag(String namespaceURI,
String localName,
String qName,
Attributes atts)
Start a child tag.
|
protected void |
endTag()
End a child tag.
|
protected static String |
escapeAttribute(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,
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, tagCleanupprotected Writer theWriter
public void flush()
throws ManifoldCFException
ManifoldCFExceptionprotected void tagContents(char[] ch,
int start,
int length)
throws ManifoldCFException
tagContents in class XMLContextManifoldCFExceptionprotected XMLContext beginTag(String namespaceURI, String localName, String qName, Attributes atts) throws ManifoldCFException, ServiceInterruption
beginTag in class XMLContextManifoldCFExceptionServiceInterruptionprotected void endTag()
throws ManifoldCFException,
ServiceInterruption
endTag in class XMLContextManifoldCFExceptionServiceInterruptionprotected static String escapeAttribute(String value)
protected static void escapeCharData(char[] chars,
int start,
int length,
Writer out)
throws IOException
IOException