Class XMLOutputStreamParsingContext
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLWriterParsingContext
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLOutputStreamParsingContext
-
- Direct Known Subclasses:
XMLFileParsingContext
public class XMLOutputStreamParsingContext extends XMLWriterParsingContext
An instance of this class represents a parsing context within a node. Data is written to the supplied output stream in utf-8 format.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.OutputStream
outputStream
The writer-
Fields inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.XMLWriterParsingContext
theWriter
-
Fields inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
localname, namespace, previousContext, qname, theseAttributes, theStream
-
-
Constructor Summary
Constructors Constructor Description XMLOutputStreamParsingContext(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.OutputStream os)
Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the underlying stream.void
flush()
Flush the data to the underlying output stream-
Methods inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.XMLWriterParsingContext
beginTag, endTag, escapeAttribute, escapeCharData, tagContents
-
Methods inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
characters, cleanup, endElement, getAttribute, getLocalname, getNamespace, getQname, startElement, tagCleanup
-
-
-
-
Constructor Detail
-
XMLOutputStreamParsingContext
public XMLOutputStreamParsingContext(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.OutputStream os) 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- Overrides:
flush
in classXMLWriterParsingContext
- Throws:
ManifoldCFException
-
close
public void close() throws ManifoldCFException
Close the underlying stream.- Throws:
ManifoldCFException
-
-