|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.cddb.CDDrive
public abstract class CDDrive
The class CDDrive represents the physical CD-ROM drive in a platform independent way. The drive can be queried on certain properties that are available from the device. In particular, it can generate a CDID object.
This class has one abstract method that needs to be implemented
in a platform dependent manner (most probably with a native method)
by classes that implement an actual drive. The method is:
String getCDDBQuery()
This method returns a string that contains all information about the inserted CD in a way that is conform with a query according to the CDDB protocol. An example return value would be: "cddb query a10c9b0c 12 150 15767 32142 52485 79740 102907 121765 141400 161912 184252 204920 238702 3229"
CDID| Method Summary | |
|---|---|
abstract void |
backward()
|
abstract void |
eject()
|
abstract void |
forward()
|
CDID |
getCDID()
|
String |
getQueryString()
returns the exact query string as specified by the CDDB query format. |
boolean |
isCDAvailable()
also performs a refresh() |
abstract void |
pause()
|
abstract void |
play()
|
void |
refresh()
(re-)queries the CD-ROM drive |
abstract void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract void eject()
public abstract void play()
public abstract void stop()
public abstract void backward()
public abstract void forward()
public abstract void pause()
public boolean isCDAvailable()
public void refresh()
public CDID getCDID()
public String getQueryString()
Where
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||