| java.lang.Object org.mandarax.xkb.XKBManager
XKBManager | public class XKBManager (Code) | | Manager for managing drivers and adding support like xml data source access
via writers and readers, streams, urls and files.
Changed in version 1.9: output uses "pretty printing".
Important Note:In version 2.2 the similar ZKB framework has been added. In the long term
ZKB will replace XKB! For details, see the org.mandarax.zkb package.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.4 |
Constructor Summary | |
public | XKBManager() Constructor. |
XKBManager | public XKBManager()(Code) | | Constructor.
|
exportKnowledgeBase | public void exportKnowledgeBase(File target, KnowledgeBase kb) throws XKBException(Code) | | Exports a knowledge base to a file.
Parameters: kb - a knowledge base Parameters: target - a file throws: an - XKBException is thrown if export fails |
exportKnowledgeBase | public void exportKnowledgeBase(OutputStream target, KnowledgeBase kb) throws XKBException(Code) | | Exports a knowledge base to an output stream.
Parameters: kb - a knowledge base Parameters: target - an output stream throws: an - XKBException is thrown if export fails |
exportKnowledgeBase | public void exportKnowledgeBase(Writer target, KnowledgeBase kb) throws XKBException(Code) | | Exports a knowledge base to a writer.
Parameters: kb - a knowledge base Parameters: target - a writer throws: an - XKBException is thrown if export fails |
getDocument | protected Document getDocument(File data) throws XKBException(Code) | | Get the document from the data sorce.
a document Parameters: File - the data source |
getDocument | protected Document getDocument(URL data) throws XKBException(Code) | | Get the document from the data sorce.
a document Parameters: URL - the data source |
importKnowledgeBase | public KnowledgeBase importKnowledgeBase(File source) throws XKBException(Code) | | Import a knowledge base from a file source.
a knowledge base Parameters: source - a file throws: an - XKBException is thrown if import fails |
importKnowledgeBase | public KnowledgeBase importKnowledgeBase(InputStream source) throws XKBException(Code) | | Import a knowledge base from an input stream source.
a knowledge base Parameters: source - an input stream throws: an - XKBException is thrown if import fails |
importKnowledgeBase | public KnowledgeBase importKnowledgeBase(URL source) throws XKBException(Code) | | Import a knowledge base from a url source.
a knowledge base Parameters: source - a url throws: an - XKBException is thrown if import fails |
setDriver | public void setDriver(XKBDriver aDriver)(Code) | | Set a new driver.
Parameters: aDriver - a driver |
setSAXBuilder | public void setSAXBuilder(SAXBuilder builder)(Code) | | Set the SAX builder. E.g., here we can set a special XML parser.
Note that validation of the builder and validation set here could become inconsistent!
Parameters: builder - a SAX builder |
|
|