org.apache.manifoldcf.agents.common
Class XMLFileContext
java.lang.Object
org.apache.manifoldcf.agents.common.XMLContext
org.apache.manifoldcf.agents.common.XMLWriterContext
org.apache.manifoldcf.agents.common.XMLOutputStreamContext
org.apache.manifoldcf.agents.common.XMLFileContext
public class XMLFileContext
- extends XMLOutputStreamContext
An instance of this class represents a parsing context within a node. Data is written to the supplied file in utf-8 format.
|
Field Summary |
protected java.io.File |
outputFile
The output file |
|
Constructor Summary |
XMLFileContext(XMLStream theStream,
java.lang.String namespaceURI,
java.lang.String localname,
java.lang.String qname,
org.xml.sax.Attributes theseAttributes,
java.io.File f)
Full constructor. |
|
Method Summary |
java.io.File |
getCompletedFile()
Get file object, flushing it, closing it, and clearing it. |
void |
tagCleanup()
Cleanup whatever is left over |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputFile
protected java.io.File outputFile
- The output file
XMLFileContext
public XMLFileContext(XMLStream theStream,
java.lang.String namespaceURI,
java.lang.String localname,
java.lang.String qname,
org.xml.sax.Attributes theseAttributes,
java.io.File f)
throws ManifoldCFException,
java.io.UnsupportedEncodingException,
java.io.FileNotFoundException
- Full constructor. Used for individual tags.
- Throws:
ManifoldCFException
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
getCompletedFile
public java.io.File getCompletedFile()
throws ManifoldCFException
- Get file object, flushing it, closing it, and clearing it. (This prevents the file from being deleted during cleanup of this context.)
- Throws:
ManifoldCFException
tagCleanup
public void tagCleanup()
throws ManifoldCFException
- Cleanup whatever is left over
- Overrides:
tagCleanup in class XMLContext
- Throws:
ManifoldCFException