java.lang.Object
com.virtuosotechnologies.asaph.xmldatabase.IndexedDatabaseFactoryImpl
- All Implemented Interfaces:
- IndexedDatabaseFactory
- class IndexedDatabaseFactoryImpl
- extends java.lang.Object
- implements IndexedDatabaseFactory
Implementation of IndexedDatabaseFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DTD_FILENAME
private static final java.lang.String DTD_FILENAME
- See Also:
- Constant Field Values
STR_PreferredCharacterEncoding
private static final java.lang.String STR_PreferredCharacterEncoding
parserFactory_
private javax.xml.parsers.SAXParserFactory parserFactory_
songUtils_
private com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_
modelFactory_
private com.virtuosotechnologies.asaph.standardmodel.StandardModelFactory modelFactory_
dtdString_
private java.lang.String dtdString_
IndexedDatabaseFactoryImpl
IndexedDatabaseFactoryImpl(com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils,
com.virtuosotechnologies.asaph.standardmodel.StandardModelFactory modelFactory)
throws java.io.IOException
- Constructor
createIndexedDatabase
public com.virtuosotechnologies.asaph.model.SongDatabase createIndexedDatabase(java.io.File directory)
throws java.io.IOException,
org.xml.sax.SAXException
- Create a new mutable indexed database rooted at the given directory.
- Specified by:
createIndexedDatabase in interface IndexedDatabaseFactory
openIndexedDatabase
public com.virtuosotechnologies.asaph.model.SongDatabase openIndexedDatabase(java.io.File directory)
throws java.io.IOException,
org.xml.sax.SAXException
- Open a mutable indexed database backed by the filesystem at the given directory.
- Specified by:
openIndexedDatabase in interface IndexedDatabaseFactory
openIndexedDatabase
public com.virtuosotechnologies.asaph.model.SongDatabase openIndexedDatabase(java.net.URL url,
org.xml.sax.ErrorHandler errorHandler)
throws java.io.IOException,
org.xml.sax.SAXException
- Open an immutable indexed database backed by the given URL.
- Specified by:
openIndexedDatabase in interface IndexedDatabaseFactory
isIndexedDatabase
public boolean isIndexedDatabase(com.virtuosotechnologies.asaph.model.SongDatabase database)
- Is the given database an indexed database?
- Specified by:
isIndexedDatabase in interface IndexedDatabaseFactory
updateDatabase04
public void updateDatabase04(java.io.File directory)
throws java.io.IOException,
org.xml.sax.SAXException
- Update a filesystem indexed database from version 0.3 to version 0.4.
- Specified by:
updateDatabase04 in interface IndexedDatabaseFactory