org.apache.manifoldcf.agents.common
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 |
protected java.io.OutputStream |
outputStream
The writer |
|
Constructor Summary |
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 |
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.XMLContext |
characters, cleanup, endDocument, endElement, getAttribute, getLocalname, getNamespaceURI, getQname, startDocument, startElement, tagCleanup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputStream
protected java.io.OutputStream outputStream
- The writer
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)
throws ManifoldCFException,
java.io.UnsupportedEncodingException
- Full constructor. Used for individual tags.
- Throws:
ManifoldCFException
java.io.UnsupportedEncodingException
flush
public void flush()
throws ManifoldCFException
- Flush the data to the underlying output stream
- Overrides:
flush in class XMLWriterContext
- Throws:
ManifoldCFException
close
public void close()
throws ManifoldCFException
- Close the underlying stream.
- Throws:
ManifoldCFException