org.xquark.extractor
Class ExtractorDriver

java.lang.Object
  |
  +--org.xquark.extractor.ExtractorDriver
All Implemented Interfaces:
XMLDriver

public class ExtractorDriver
extends java.lang.Object
implements XMLDriver


Field Summary
static java.lang.String EXTRACTOR_URL_PREFIX
           
 
Method Summary
 boolean acceptsURI(java.lang.String uri)
          Returns true if the driver understand the specified connection string
 XMLDataSource getDataSource(java.lang.String uri)
          To obtain a handle to a data source with the specified URI.
 XMLDataSource getDataSource(java.lang.String uri, java.lang.String user, java.lang.String password)
          To obtain a handle to a data source with the specified URI, user name and password.
 java.lang.String getSpecificPart(java.lang.String uri)
          Returns the driver-specific part of the URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTRACTOR_URL_PREFIX

public static final java.lang.String EXTRACTOR_URL_PREFIX
See Also:
Constant Field Values
Method Detail

acceptsURI

public boolean acceptsURI(java.lang.String uri)
                   throws XMLDBCException
Description copied from interface: XMLDriver
Returns true if the driver understand the specified connection string

Specified by:
acceptsURI in interface XMLDriver
Parameters:
uri - the connection string
Returns:
a boolean
Throws:
XMLDBCException

getSpecificPart

public java.lang.String getSpecificPart(java.lang.String uri)
                                 throws XMLDBCException
Description copied from interface: XMLDriver
Returns the driver-specific part of the URI

Specified by:
getSpecificPart in interface XMLDriver
Parameters:
uri -
Returns:
a string
Throws:
XMLDBCException - if the URI is not recognized by the driver

getDataSource

public XMLDataSource getDataSource(java.lang.String uri)
                            throws XMLDBCException
Description copied from interface: XMLDriver
To obtain a handle to a data source with the specified URI.

Specified by:
getDataSource in interface XMLDriver
Parameters:
uri - an URI corresponding to a data source.
Returns:
an instance of the specified data source, or null if the driver does not know this type of data source
Throws:
XMLDBCException - if a data source access error occurs.

getDataSource

public XMLDataSource getDataSource(java.lang.String uri,
                                   java.lang.String user,
                                   java.lang.String password)
                            throws XMLDBCException
Description copied from interface: XMLDriver
To obtain a handle to a data source with the specified URI, user name and password.

Specified by:
getDataSource in interface XMLDriver
Parameters:
uri - a URI corresponding to a data source.
user - a user name
password - a user password
Returns:
an instance of the specified data source, or null if the driver does not know this type of data source
Throws:
XMLDBCException - if a data source access error occurs.


Copyright © 2004 Université de Versailles Saint-Quentin, XQuark Group. All rights reserved.