|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tuneology.avm.drive.Drive | +--com.tuneology.avm.drive.CDDrive
An interface to a CD-ROM drive.
Field Summary | |
protected boolean |
audio_play
True if the drive can play audio CDs |
static int |
AUDIO_TRACK
possible value for TocEntry.typ |
static int |
AUDIO_TRACKS_BIT
This bit is set if the disc in the drive contains at least one audio track. |
protected boolean |
BCK
True if the drive can have valid data on falling edge of clock |
protected java.lang.String |
bclk
length of data in BCLKs of the drive. |
protected boolean |
BUF
True if the drive can support Buffer-Underrun-Free recording |
protected int |
buffer_size
buffer size in KB of the drive. |
protected boolean |
c2_pointers
True if the drive can support C2 error pointers |
protected boolean |
cd_da_accurate
True if the drive can restart non-streamed digital audio reads accurately |
protected boolean |
cd_da_supported
True if the drive can read digital audio blocks |
protected boolean |
cd_r_read
True if the drive can read CD-R media |
protected boolean |
cd_r_write
True if the drive can write CD-R media |
protected boolean |
cd_rw_read
True if the drive can read CD-RW media |
protected boolean |
cd_rw_write
True if the drive can write CD-RW media |
protected static java.lang.String |
cdrdaoCmd
|
protected static java.lang.String |
cdrecordCmd
|
protected boolean |
composite
True if the drive can deliver composite A/V data |
protected int |
cur_read_speed
Current read speed in kB/s supported by the drive. |
protected int |
cur_write_speed
Current write speed in kB/s supported by the drive. |
protected DiscInfo |
curInfo
current disc info - set by native code |
static int |
DATA_TRACK
possible value for TocEntry.typ |
static int |
DATA_TRACKS_BIT
This bit is set if the disc in the drive has a data track. |
protected boolean |
digital_port_1
True if the drive can support digital output on port 1 |
protected boolean |
digital_port_2
True if the drive can support digital output on port 2 |
static int |
DISC_PRESENT_BIT
This bit is set if a disc is present in the drive. |
protected boolean |
disk_present_rep
True if the drive can support Individual Disc Present feature |
static int |
DRIVE_CLOSED_BIT
This bit is set if the drive is closed. |
static int |
DRIVE_READY_BIT
This bit is set if the drive is ready. |
protected boolean |
dvd_r_read
True if the drive can read DVD-R media |
protected boolean |
dvd_r_write
True if the drive can write DVD-R media |
protected boolean |
dvd_ram_read
True if the drive can read DVD-RAM media |
protected boolean |
dvd_ram_write
True if the drive can write DVD-RAM media |
protected boolean |
dvd_rom_read
True if the drive can read DVD-ROM media |
static int |
ERASABLE_DISC
This bit is set if the disc in the drive is erasable. |
static int |
EXTRA_FILE
possible value for TocEntry.typ |
static int |
FS_3DO
possible value for TocEntry.fs |
static int |
FS_BOOTABLE
|
static int |
FS_CDTV
|
static int |
FS_EXT2
possible value for TocEntry.fs |
static int |
FS_HFS
possible value for TocEntry.fs |
static int |
FS_HIDDEN_TRACK
|
static int |
FS_HIGH_SIERRA
possible value for TocEntry.fs |
static int |
FS_INTERACTIVE
possible value for TocEntry.fs |
static int |
FS_ISO_9660
possible value for TocEntry.fs |
static int |
FS_ISO_9660_INTERACTIVE
possible value for TocEntry.fs |
static int |
FS_ISO_HFS
possible value for TocEntry.fs |
static int |
FS_JOLIET
|
static int |
FS_MASK
|
static int |
FS_MULTISESSION
|
static int |
FS_NO_DATA
possible value for TocEntry.fs |
static int |
FS_PHOTO_CD
|
static int |
FS_ROCKRIDGE
|
static int |
FS_UFS
possible value for TocEntry.fs |
static int |
FS_UNKNOWN
possible value for TocEntry.fs |
static int |
FS_VIDEOCDI
|
static int |
FS_XA
|
protected boolean |
ISRC
True if the drive can return CD ISRC information |
protected java.lang.String |
load_type
the drive's loading mechanism type |
protected boolean |
lock
True if the drive can allow media to be locked in the drive via PREVENT/ALLOW command |
protected boolean |
LSBF
True if the drive can send digital data LSB-first |
protected int |
max_read_speed
Maximum read speed in kB/s supported by the drive. |
protected int |
max_write_speed
Maximum write speed in kB/s supported by the drive. |
protected boolean |
method2
True if the drive can read fixed-packet CD media using Method 2 |
protected boolean |
mode_2_form_1
True if the drive can read Mode 2 Form 1 blocks |
protected boolean |
mode_2_form_2
True if the drive can read Mode 2 Form 2 blocks |
protected boolean |
multi_session
True if the drive can read multi-session CDs |
protected int |
num_vol_levels
number of volume control labels supported by the drive. |
protected boolean |
prevent_jumper
True if the drive can lock media on power up via prevent jumper |
protected java.lang.String |
processOutput
|
protected boolean |
pw_in_lead_in
True if the drive can read raw P-W subcode data from lead in |
protected boolean |
RCK
True if the drive can set LRCK high for left-channel data |
protected boolean |
read_bar_code
True if the drive can read CD bar code |
static int |
RECORDABLE_DISC
This bit is set if the disc in the drive is recordable. |
protected boolean |
rw_deint_corr
True if the drive can return R-W subcode de-interleaved and error-corrected |
protected boolean |
rw_supported
True if the drive can R-W subcode information |
protected boolean |
sep_chan_mute
True if the drive can support independent mute setting for each channel |
protected boolean |
sep_chan_vol
True if the drive can support individual volume control setting for each channel |
protected boolean |
side_change
True if the drive can support changing side of disk |
protected boolean |
sw_slot_sel
True if the drive can have load-empty-slot-in-changer feature |
protected boolean |
test_write
True if the drive can support test writing |
protected boolean |
UPC
True if the drive can return CD media catalog number |
protected java.lang.Integer[] |
writeSpeeds
list of write speeds |
Fields inherited from class com.tuneology.avm.drive.Drive |
ent, refNum, TYPE_CDR, TYPE_CDROM, TYPE_CDRW, TYPE_DVD, TYPE_DVDR, TYPE_DVDRAM, TYPE_EJECTABLE, TYPE_FIXEDDISC, TYPE_FLOPPY, TYPE_LOADABLE, TYPE_LOOPBACK, TYPE_NETWORK, TYPE_OTHER, TYPE_REMOVABLE |
Method Summary | |
void |
addChangeListener(PlayerStatusListener st)
|
java.io.InputStream |
createImage()
Reads the contents of the CD |
void |
doUpdate(PlayerStatus st)
|
Ripper |
getAudioRipper()
Returns the current audio ripping class. |
static java.lang.Class[] |
getAudioRippers()
Returns an array of potential audio ripper classes. |
protected static java.util.ArrayList |
getCdrdaoCmd()
|
java.lang.String |
getCdrdaoDriver()
Returns the current setting of the cdrdao driver for this drive. |
static java.lang.String[] |
getCdrdaoDrivers()
Returns a list of all drivers used by cdrdao. |
protected static java.util.ArrayList |
getCdrecordCmd()
|
Ripper |
getDataRipper()
Returns the current data track ripping class. |
static java.lang.Class[] |
getDataRippers()
Returns an array of potential data ripper classes. |
static java.lang.String |
getDefaultCdrdaoDriver()
Returns the default cdrdao driver. |
protected java.util.ArrayList |
getDevCdrecordCmd()
|
java.lang.String |
getDevice()
Returns the device name. |
DiscInfo |
getDiscInfo()
Returns the current state of the drive and full information about a CD, if present. |
int |
getDriveReadSpeed()
Returns the maximum read speed of the drive. |
java.lang.String |
getGenericDev()
for linux only |
MountPoint[] |
getMountPoints()
Returns the mount points. |
AudioPlayer |
getPlayer(java.lang.String volumeControl)
|
static java.lang.String |
getRipperDescription(java.lang.Class cl)
returns a short string describing the ripper. |
static java.lang.String |
getVersions()
Returns a string containing the versions of the burners and rippers used. |
boolean |
isLoaded()
Returns true if the tray is closed. |
protected void |
readCapabilities()
This fails on OSX if there is an Audio CD inserted and mounted. |
void |
removeChangeListener(PlayerStatusListener st)
|
java.io.InputStream |
ripTrack(int track,
int startIndex,
int len,
int bufsiz,
RipStatus stat)
Rips an audio track as a WAV file, or a data track as raw data, and returns a stream to it. |
void |
setAudioRipper(java.lang.Class cl)
Sets the audio ripper class to be used by this drive. |
static void |
setCdrdaoCmd(java.lang.String str)
|
void |
setCdrdaoDriver(java.lang.String str)
Set the driver used by cdrdao with this drive. |
static void |
setCdrecordCmd(java.lang.String str)
|
void |
setDataRipper(java.lang.Class cl)
Sets the data ripper class to be used by this drive. |
void |
setPlayer(AudioPlayer pl)
|
void |
startUpdate()
Start the background thread that keeps the audio status updated. |
void |
stopUpdate()
Stop the audio status update thread. |
static void |
touch()
|
Methods inherited from class com.tuneology.avm.drive.Drive |
findDriveByDevice, findDriveByScsiId, findMountPointByDevice, getDefaultCDROM, getDisktoolCmd, getDrive, getDriveList, getDriveType, getDriveType, getEntry, getHdiutilCmd, getManufacturer, getModel, getMountPoint, getNameMax, getScsiId, getScsiId, getVersion, isCDR, isCdrom, setDiscFreeCmd, setDisktoolCmd, setFstabPath, setHdiutilCmd, setMountCmd, setUmountCmd |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean cd_r_read
protected boolean cd_r_write
protected boolean cd_rw_read
protected boolean cd_rw_write
protected boolean dvd_r_read
protected boolean dvd_r_write
protected boolean dvd_rom_read
protected boolean dvd_ram_read
protected boolean dvd_ram_write
protected boolean test_write
protected boolean mode_2_form_1
protected boolean mode_2_form_2
protected boolean cd_da_supported
protected boolean cd_da_accurate
protected boolean BUF
protected boolean multi_session
protected boolean method2
protected boolean read_bar_code
protected boolean rw_supported
protected boolean rw_deint_corr
protected boolean pw_in_lead_in
protected boolean UPC
protected boolean ISRC
protected boolean c2_pointers
protected boolean composite
protected boolean audio_play
protected boolean sep_chan_vol
protected boolean sep_chan_mute
protected boolean digital_port_1
protected boolean digital_port_2
protected boolean LSBF
protected boolean RCK
protected boolean BCK
protected boolean prevent_jumper
protected boolean lock
protected boolean side_change
protected boolean sw_slot_sel
protected boolean disk_present_rep
protected int num_vol_levels
protected int max_read_speed
protected int cur_read_speed
protected int max_write_speed
protected int cur_write_speed
protected int buffer_size
protected java.lang.String bclk
protected java.lang.String load_type
protected java.lang.Integer[] writeSpeeds
protected DiscInfo curInfo
protected java.lang.String processOutput
protected static java.lang.String cdrecordCmd
protected static java.lang.String cdrdaoCmd
public static final int DRIVE_CLOSED_BIT
public static final int DRIVE_READY_BIT
public static final int DISC_PRESENT_BIT
public static final int RECORDABLE_DISC
public static final int ERASABLE_DISC
public static final int AUDIO_TRACKS_BIT
public static final int DATA_TRACKS_BIT
public static final int DATA_TRACK
public static final int AUDIO_TRACK
public static final int EXTRA_FILE
public static final int FS_NO_DATA
public static final int FS_HIGH_SIERRA
public static final int FS_ISO_9660
public static final int FS_INTERACTIVE
public static final int FS_HFS
public static final int FS_UFS
public static final int FS_EXT2
public static final int FS_ISO_HFS
public static final int FS_ISO_9660_INTERACTIVE
public static final int FS_3DO
public static final int FS_UNKNOWN
public static final int FS_MASK
public static final int FS_XA
public static final int FS_MULTISESSION
public static final int FS_PHOTO_CD
public static final int FS_HIDDEN_TRACK
public static final int FS_CDTV
public static final int FS_BOOTABLE
public static final int FS_VIDEOCDI
public static final int FS_ROCKRIDGE
public static final int FS_JOLIET
Method Detail |
public java.io.InputStream createImage() throws java.io.IOException
public java.io.InputStream ripTrack(int track, int startIndex, int len, int bufsiz, RipStatus stat) throws java.lang.Exception
track
- the track to ripstartIndex
- where to start within the track; 0 is the beginning.len
- the number of sectors to read (-1 means until the end of the track).bufsiz
- the buffer size to use (0 or less means use the default).stat
- the status indicatorjava.lang.Exception
- public MountPoint[] getMountPoints()
getMountPoints
in class Drive
public java.lang.String getDevice()
getDevice
in class Drive
public DiscInfo getDiscInfo() throws java.lang.Exception
java.lang.Exception
- public int getDriveReadSpeed()
public boolean isLoaded() throws java.io.IOException
java.io.IOException
- public static java.lang.Class[] getDataRippers()
public static java.lang.Class[] getAudioRippers()
public static java.lang.String getRipperDescription(java.lang.Class cl)
the
- ripper classpublic void setDataRipper(java.lang.Class cl) throws java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
cl
- java.lang.NoSuchMethodException
- java.lang.InstantiationException
- java.lang.IllegalAccessException
- java.lang.reflect.InvocationTargetException
- public Ripper getDataRipper()
public AudioPlayer getPlayer(java.lang.String volumeControl) throws java.lang.Exception
java.lang.Exception
- public void setPlayer(AudioPlayer pl)
public void setAudioRipper(java.lang.Class cl) throws java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
cl
- java.lang.NoSuchMethodException
- java.lang.InstantiationException
- java.lang.IllegalAccessException
- java.lang.reflect.InvocationTargetException
- public Ripper getAudioRipper()
public static java.lang.String getVersions()
protected java.util.ArrayList getDevCdrecordCmd()
protected static java.util.ArrayList getCdrecordCmd()
protected static java.util.ArrayList getCdrdaoCmd()
public static void setCdrecordCmd(java.lang.String str) throws java.lang.Exception
str
- public static void setCdrdaoCmd(java.lang.String str) throws java.lang.Exception
str
- public void setCdrdaoDriver(java.lang.String str)
str
- public java.lang.String getCdrdaoDriver()
public static java.lang.String[] getCdrdaoDrivers()
public static java.lang.String getDefaultCdrdaoDriver()
public void addChangeListener(PlayerStatusListener st)
st
- public void removeChangeListener(PlayerStatusListener st)
st
- protected void readCapabilities() throws java.lang.Exception
public void doUpdate(PlayerStatus st) throws java.lang.Exception
st
- java.lang.Exception
- public void startUpdate()
public void stopUpdate()
public java.lang.String getGenericDev()
public static void touch()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |