public class XMLWriterParsingContext extends XMLParsingContext
| Modifier and Type | Field and Description |
|---|---|
protected Writer |
theWriter
The writer
|
localname, namespace, previousContext, qname, theseAttributes, theStream| Constructor and Description |
|---|
XMLWriterParsingContext(XMLFuzzyHierarchicalParseState theStream,
String namespace,
String localname,
String qname,
Map<String,String> theseAttributes,
Writer writer)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected XMLParsingContext |
beginTag(String namespace,
String localName,
String qName,
Map<String,String> 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(String body,
Writer out)
Escapes sequence of characters to output writer
|
void |
flush()
Flush the data to the underlying output stream
|
protected void |
tagContents(String body)
This method is meant to be extended by classes that extend this class
|
characters, cleanup, endElement, getAttribute, getLocalname, getNamespace, getQname, startElement, tagCleanupprotected Writer theWriter
public XMLWriterParsingContext(XMLFuzzyHierarchicalParseState theStream, String namespace, String localname, String qname, Map<String,String> theseAttributes, Writer writer) throws ManifoldCFException
ManifoldCFExceptionpublic void flush()
throws ManifoldCFException
ManifoldCFExceptionprotected void tagContents(String body) throws ManifoldCFException
tagContents in class XMLParsingContextManifoldCFExceptionprotected XMLParsingContext beginTag(String namespace, String localName, String qName, Map<String,String> atts) throws ManifoldCFException
beginTag in class XMLParsingContextManifoldCFExceptionprotected void endTag()
throws ManifoldCFException
endTag in class XMLParsingContextManifoldCFExceptionprotected static String escapeAttribute(String value)
protected static void escapeCharData(String body, Writer out) throws IOException
IOException