|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
API for creating and connecting to indexed databases.
This API is fully synchronized and thread-safe.
| Field Summary | |
static StringID |
CURRENT_INDEX_XML_FORMAT_CODE
The format code given to the indexes of databases created by this factory. |
| Method Summary | |
SongDatabase |
createIndexedDatabase(File directory)
Create a new mutable indexed database rooted at the given directory. |
StringID |
getDatabaseIndexXMLFormatCode(SongDatabase database)
Return the format code for the given SongDatabase index. |
boolean |
isIndexedDatabase(SongDatabase database)
Is the given database an indexed database? |
SongDatabase |
openIndexedDatabase(File directory)
Open a mutable indexed database backed by the filesystem at the given directory. |
SongDatabase |
openIndexedDatabase(URL url,
ErrorHandler errorHandler)
Open an immutable indexed database backed by the given URL. |
| Field Detail |
public static final StringID CURRENT_INDEX_XML_FORMAT_CODE
| Method Detail |
public SongDatabase createIndexedDatabase(File directory)
throws IOException,
SAXException
directory - directory to create
IOException - fatal error
SAXException - fatal error
public SongDatabase openIndexedDatabase(File directory)
throws IOException,
SAXException
directory - indexed database to open
IOException - fatal error
SAXException - fatal error
public SongDatabase openIndexedDatabase(URL url,
ErrorHandler errorHandler)
throws IOException,
SAXException
url - indexed database to openerrorHandler - handler for errors parsing the index file
IOException - fatal error
SAXException - fatal errorpublic boolean isIndexedDatabase(SongDatabase database)
database - database to check
public StringID getDatabaseIndexXMLFormatCode(SongDatabase database)
database - SongDatabase to query
IllegalArgumentException - the song isn't a simple SongDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||