org.tritonus.lowlevel.cdda.cooked_ioctl
Class CookedIoctlMidLevel

java.lang.Object
  extended byorg.tritonus.lowlevel.cdda.cooked_ioctl.CookedIoctlMidLevel
All Implemented Interfaces:
CddaMidLevel

public class CookedIoctlMidLevel
extends Object
implements CddaMidLevel


Field Summary
 
Fields inherited from interface org.tritonus.lowlevel.cdda.CddaMidLevel
FRAME_SIZE
 
Constructor Summary
CookedIoctlMidLevel()
           
 
Method Summary
 String getDefaultDevice()
          Gives the default drive.
 Iterator getDevices()
          Gives the available CDROM devices.
 InputStream getTocAsXml(String strDevice)
           
 AudioInputStream getTrack(String strDevice, int nTrack)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookedIoctlMidLevel

public CookedIoctlMidLevel()
Method Detail

getDevices

public Iterator getDevices()
Description copied from interface: CddaMidLevel
Gives the available CDROM devices. The returned iteration should contain a list of Strings. Each String represents an internal name of a CDROM drive. This String should be considered implementation-specific. It may contain no useful information (however, most time it does). Currently, it is required that the String starts with exactely one '/'. Should only those drives returned that have an audio CD in?

Specified by:
getDevices in interface CddaMidLevel

getDefaultDevice

public String getDefaultDevice()
Description copied from interface: CddaMidLevel
Gives the default drive. A String should be returned that represents the default drive. The String has to follow the conventions described in getDevices(). The String returned by this method should also appear as one of the elements in the iteration returned by getDevices().

Specified by:
getDefaultDevice in interface CddaMidLevel

getTocAsXml

public InputStream getTocAsXml(String strDevice)
                        throws IOException
Specified by:
getTocAsXml in interface CddaMidLevel
Throws:
IOException

getTrack

public AudioInputStream getTrack(String strDevice,
                                 int nTrack)
                          throws IOException
Specified by:
getTrack in interface CddaMidLevel
Throws:
IOException