Class XMLFileParsingContext
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLWriterParsingContext
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLOutputStreamParsingContext
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLFileParsingContext
-
public class XMLFileParsingContext extends XMLOutputStreamParsingContext
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
Fields Modifier and Type Field Description protected java.io.File
outputFile
The output file-
Fields inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.XMLOutputStreamParsingContext
outputStream
-
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 XMLFileParsingContext(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.File f)
Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 org.apache.manifoldcf.connectorcommon.fuzzyml.XMLOutputStreamParsingContext
close, flush
-
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
-
-
-
-
Constructor Detail
-
XMLFileParsingContext
public XMLFileParsingContext(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.File f) throws ManifoldCFException, java.io.FileNotFoundException
Full constructor. Used for individual tags.- Throws:
ManifoldCFException
java.io.FileNotFoundException
-
-
Method Detail
-
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 classXMLParsingContext
- Throws:
ManifoldCFException
-
-