Class XMLWriterParsingContext
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLWriterParsingContext
-
- Direct Known Subclasses:
XMLOutputStreamParsingContext
public class XMLWriterParsingContext extends XMLParsingContext
An instance of this class represents a parsing context within a node. Data is written to the supplied writer.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.Writer
theWriter
The writer-
Fields inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
localname, namespace, previousContext, qname, theseAttributes, theStream
-
-
Constructor Summary
Constructors Constructor Description XMLWriterParsingContext(XMLFuzzyHierarchicalParseState theStream, java.lang.String namespace, java.lang.String localname, java.lang.String qname, java.util.Map<java.lang.String,java.lang.String> theseAttributes, java.io.Writer writer)
Full constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XMLParsingContext
beginTag(java.lang.String namespace, java.lang.String localName, java.lang.String qName, java.util.Map<java.lang.String,java.lang.String> 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 valueprotected static void
escapeCharData(java.lang.String body, java.io.Writer out)
Escapes sequence of characters to output writervoid
flush()
Flush the data to the underlying output streamprotected void
tagContents(java.lang.String body)
This method is meant to be extended by classes that extend this class-
Methods inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
characters, cleanup, endElement, getAttribute, getLocalname, getNamespace, getQname, startElement, tagCleanup
-
-
-
-
Constructor Detail
-
XMLWriterParsingContext
public XMLWriterParsingContext(XMLFuzzyHierarchicalParseState theStream, java.lang.String namespace, java.lang.String localname, java.lang.String qname, java.util.Map<java.lang.String,java.lang.String> theseAttributes, java.io.Writer writer) throws ManifoldCFException
Full constructor. Used for individual tags.- Throws:
ManifoldCFException
-
-
Method Detail
-
flush
public void flush() throws ManifoldCFException
Flush the data to the underlying output stream- Throws:
ManifoldCFException
-
tagContents
protected void tagContents(java.lang.String body) throws ManifoldCFException
This method is meant to be extended by classes that extend this class- Overrides:
tagContents
in classXMLParsingContext
- Throws:
ManifoldCFException
-
beginTag
protected XMLParsingContext beginTag(java.lang.String namespace, java.lang.String localName, java.lang.String qName, java.util.Map<java.lang.String,java.lang.String> atts) throws ManifoldCFException
Start a child tag. The XMLWriterContext accepts all subtags in their text form.- Overrides:
beginTag
in classXMLParsingContext
- Throws:
ManifoldCFException
-
endTag
protected void endTag() throws ManifoldCFException
End a child tag. The XMLWriterContext accepts all subtags in their text form.- Overrides:
endTag
in classXMLParsingContext
- Throws:
ManifoldCFException
-
escapeAttribute
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
-
escapeCharData
protected static void escapeCharData(java.lang.String body, java.io.Writer out) throws java.io.IOException
Escapes sequence of characters to output writer- Throws:
java.io.IOException
-
-