Class XMLStream
- java.lang.Object
-
- org.apache.manifoldcf.agents.common.XMLStream
-
public class XMLStream extends java.lang.ObjectThis object allows easier control of an XML parsing stream than does standard SAX.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXMLStream.MyContentHandlerprotected static classXMLStream.MyEntityResolverprotected classXMLStream.MyErrorHandler
-
Field Summary
Fields Modifier and Type Field Description protected XMLContextcurrentContextThe current contextprotected org.xml.sax.SAXParseExceptionparseExceptionThe parse exception we saw, if anyprotected org.xml.sax.XMLReaderxrThe xml reader object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Call this method to clean up completely after a parse attempt, whether successful or failure.XMLContextgetContext()voidparse(java.io.InputStream xmlInputStream)voidsetContext(XMLContext context)
-
-
-
Field Detail
-
xr
protected org.xml.sax.XMLReader xr
The xml reader object
-
currentContext
protected XMLContext currentContext
The current context
-
parseException
protected org.xml.sax.SAXParseException parseException
The parse exception we saw, if any
-
-
Constructor Detail
-
XMLStream
public XMLStream(boolean laxChecking) throws ManifoldCFExceptionConstructor. This does NOT actually execute the parse yet, because we need the object before that makes any sense.- Throws:
ManifoldCFException
-
XMLStream
public XMLStream() throws ManifoldCFExceptionDefault constructor- Throws:
ManifoldCFException
-
-
Method Detail
-
parse
public void parse(java.io.InputStream xmlInputStream) throws ManifoldCFException, ServiceInterruption, java.io.IOException- Throws:
ManifoldCFExceptionServiceInterruptionjava.io.IOException
-
cleanup
public void cleanup() throws ManifoldCFExceptionCall this method to clean up completely after a parse attempt, whether successful or failure.- Throws:
ManifoldCFException
-
setContext
public void setContext(XMLContext context)
-
getContext
public XMLContext getContext()
-
-