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.WritertheWriterThe 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 XMLParsingContextbeginTag(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 voidendTag()End a child tag.protected static java.lang.StringescapeAttribute(java.lang.String value)Convert a string to a value that's safe to include inside an attribute valueprotected static voidescapeCharData(java.lang.String body, java.io.Writer out)Escapes sequence of characters to output writervoidflush()Flush the data to the underlying output streamprotected voidtagContents(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 ManifoldCFExceptionFlush the data to the underlying output stream- Throws:
ManifoldCFException
-
tagContents
protected void tagContents(java.lang.String body) throws ManifoldCFExceptionThis method is meant to be extended by classes that extend this class- Overrides:
tagContentsin 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:
beginTagin classXMLParsingContext- Throws:
ManifoldCFException
-
endTag
protected void endTag() throws ManifoldCFExceptionEnd a child tag. The XMLWriterContext accepts all subtags in their text form.- Overrides:
endTagin 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.IOExceptionEscapes sequence of characters to output writer- Throws:
java.io.IOException
-
-