Class XMLOutputStreamContext
- java.lang.Object
-
- org.apache.manifoldcf.agents.common.XMLContext
-
- org.apache.manifoldcf.agents.common.XMLWriterContext
-
- org.apache.manifoldcf.agents.common.XMLOutputStreamContext
-
- Direct Known Subclasses:
XMLFileContext
public class XMLOutputStreamContext extends XMLWriterContext
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.agents.common.XMLWriterContext
theWriter
-
Fields inherited from class org.apache.manifoldcf.agents.common.XMLContext
localname, namespaceURI, previousContext, qname, theseAttributes, theStream
-
-
Constructor Summary
Constructors Constructor Description XMLOutputStreamContext(XMLStream theStream, java.lang.String namespaceURI, java.lang.String localname, java.lang.String qname, org.xml.sax.Attributes 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.agents.common.XMLWriterContext
beginTag, endTag, escapeAttribute, escapeCharData, tagContents
-
Methods inherited from class org.apache.manifoldcf.agents.common.XMLContext
characters, cleanup, endDocument, endElement, getAttribute, getLocalname, getNamespaceURI, getQname, startDocument, startElement, tagCleanup
-
-
-
-
Constructor Detail
-
XMLOutputStreamContext
public XMLOutputStreamContext(XMLStream theStream, java.lang.String namespaceURI, java.lang.String localname, java.lang.String qname, org.xml.sax.Attributes theseAttributes, java.io.OutputStream os)
Full constructor. Used for individual tags.
-
-
Method Detail
-
flush
public void flush() throws ManifoldCFException
Flush the data to the underlying output stream- Overrides:
flush
in classXMLWriterContext
- Throws:
ManifoldCFException
-
close
public void close() throws ManifoldCFException
Close the underlying stream.- Throws:
ManifoldCFException
-
-