org.apache.manifoldcf.agents.common
Class XMLOutputStreamContext

java.lang.Object
  extended by org.apache.manifoldcf.agents.common.XMLContext
      extended by org.apache.manifoldcf.agents.common.XMLWriterContext
          extended by 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
 
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
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.XMLWriterContext
beginTag, endTag, escapeAttribute, tagContents
 
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
 

Field Detail

outputStream

protected java.io.OutputStream outputStream
The writer

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)
                       throws ManifoldCFException,
                              java.io.UnsupportedEncodingException
Full constructor. Used for individual tags.

Throws:
ManifoldCFException
java.io.UnsupportedEncodingException
Method Detail

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