All Packages Class Hierarchy This Package Previous Next Index
Class XSA.InternalObjectsFactory
java.lang.Object
|
+----XSA.InternalObjectsFactory
- public class InternalObjectsFactory
- extends Object
This class is used by the XSA engine to create objects it uses
internally. It can be subclassed by advanced applications that
need to change the internal workings of the engine.
-
InternalObjectsFactory()
-
-
createDocHandler(Parser, XSAClient, String, Hashtable, ObjectFactory)
- Sets up and creates the XSADocumentHandler object.
-
createErrorHandler(String, XSAClient)
- Creates the error handler to be used during parsing.
-
createParser(String)
- Creates a SAX parser.
InternalObjectsFactory
public InternalObjectsFactory()
createParser
public Parser createParser(String parserDriver) throws InternalXSAException
- Creates a SAX parser.
- Parameters:
- parserDriver - The driver to instantiate. If null the factory will
try using the org.xml.sax.parser property instead.
- Throws: InternalXSAException
- Thrown with an appropriate error message
if the parser cannot be created.
createDocHandler
public XSADocumentHandler createDocHandler(Parser parser,
XSAClient client,
String url,
Hashtable pids,
ObjectFactory factory)
- Sets up and creates the XSADocumentHandler object.
- Parameters:
- parser - The SAX parser that will use the detector.
- client - The XSA client that receives events.
- url - The URL of the document to be parsed.
- pids - The product IDs of the products to check.
- factory - The object factory to be used by the SAX handlers.
createErrorHandler
public ErrorHandler createErrorHandler(String url,
XSAClient client)
- Creates the error handler to be used during parsing.
- Parameters:
- url - The URL of the document to be parsed.
- client - The XSA client that receives events.
All Packages Class Hierarchy This Package Previous Next Index