|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Class Summary | |
|---|---|
| CDDB | The CDDB class provides access to the information provided by servers compliant with the CDDB protocol. |
| CDDB.Detail | A detail object contains all of the detailed information about a particular CD as retrieved from the CDDB server. |
| CDDB.Entry | This class encapsulates the information needed to look up a full CDDB record for a particular disc. |
| CDDBProtocol | The CDDB protocol class provides constants related to the CDDB protocol as well as utility routines useful in dealing with the protocol. |
| CDDBTest | Tests the CDDB code by connecting to a CDDB server and making some requests. |
| Exception Summary | |
|---|---|
| CDDBException | This exception class encapsulates errors that may occur while communicating to a CDDB server. |
Routines for accessing a CDDB server.
The CDDB class provides the
primary interface to the CDDB services. This service does not
provide a means to obtain the CD identification information that
you'll need to perform a CDDB lookup. In the application that
motivated the creation of these services, a cdparanoia
process was spawned to read the disc info. Other mechanisms surely
exist.
Use of the CDDB class is fairly straightforward:
CDDB cddb = new CDDB();
cddb.connect("www.freedb.org");
CDDB.Entry[] entries = cddb.query(discid, frameOffsets, length);
for (int i = 0; i < entries.length; i++) {
CDDB.Detail detail = cddb.read(entries[i].category,
entries[i].discid);
// do your thang now...
}
These services presently do not provide a mechanism for submitting a CDDB entry (which involves sending an email). It surely will in the future.
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||