|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tuneology.avm.burner.ShellBurner | +--com.tuneology.avm.burner.CdrdaoBurner
Implements writing CD-R data using the cdrdao program.
Fields inherited from class com.tuneology.avm.burner.ShellBurner |
atipInfo, drive, maxMediaWriteSpeed, msInfo, pm, shellEncoding |
Fields inherited from interface com.tuneology.avm.burner.Burner |
BLANK_ALL, BLANK_FAST, BLANK_FORCE, BLANK_SESSION, BLANK_TRACK, BLANK_TRTAIL, BLANK_UNCLOSE, BLANK_UNRESERVE, DAO_MODE, DUMMY_MODE, ENABLE_MULTISESSION_BIT, FIXATING, PREPARING, RAW_MODE, RAW16_MODE, RAW96P_MODE, RAW96R_MODE, READING, STARTING, SUPPORTS_AUDIO_TRACKS, SUPPORTS_CDPLUS_DISCS, SUPPORTS_CDTEXT, SUPPORTS_COPY, SUPPORTS_CUE_FILES, SUPPORTS_DAO_MODE, SUPPORTS_DATA_TRACK, SUPPORTS_ERASE, SUPPORTS_MULTISESSION, SUPPORTS_TAO_MODE, TAO_MODE, WRITING_TRACKS |
Constructor Summary | |
CdrdaoBurner(CDRDrive drive)
|
Method Summary | |
protected void |
cleanupErase()
|
protected void |
cleanupMsinfo()
|
protected void |
cleanupSession(java.io.File tempDir)
|
void |
erase(int mode)
Erases the disc according to the desired mode. |
protected java.util.ArrayList |
getAtipCmd()
Returns the command required to read the ATIP info from the disc. |
static int |
getCapabilities()
|
protected java.util.ArrayList |
getCopyCmd(CDDrive src,
int speed,
boolean onTheFly)
Returns the command required to create a copy of the disc in the src drive. |
static java.lang.String |
getDescription()
|
protected java.util.ArrayList |
getEraseCmd(int mode)
Returns the command required to erase the disc in the given mode. |
protected java.util.ArrayList |
getMsinfoCmd()
Returns the command required to read the multisession info from the disc. |
protected java.util.ArrayList |
getSessionCmd(int speed,
int mode,
boolean multi,
java.lang.String mcn,
java.lang.String[] tracks,
boolean[] types,
DiscInfo info,
java.io.File tempDir)
|
protected java.util.ArrayList |
getStreamingCmd(int speed,
int mode,
boolean multi,
java.lang.String mcn,
boolean type,
TocEntry cdText)
|
static java.lang.String |
getVersionString()
|
protected boolean |
readAtipOutput(java.lang.String str)
Called for each line of output from the program while reading the ATIP info from a disc. |
protected boolean |
readCopyOutput(java.lang.String str)
Called for each line of output from the program while copying a disc. |
protected boolean |
readEraseOutput(java.lang.String str)
Called for each line of output from the program while erasing a disc. |
protected boolean |
readMsinfoOutput(java.lang.String str)
Called for each line of output from the program while reading the multisession info from a disc. |
protected boolean |
readSessionOutput(java.lang.String str)
Called for each line of output from the program. |
static void |
setCdrdaoCmd(java.lang.String str)
Sets the pathname to the cdrdao executable. |
Methods inherited from class com.tuneology.avm.burner.ShellBurner |
burnSession, createCopy, getAtipInfo, getMsinfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.tuneology.avm.burner.Burner |
burnSession, createCopy, getAtipInfo, getMsinfo |
Constructor Detail |
public CdrdaoBurner(CDRDrive drive)
drive
- Method Detail |
protected java.util.ArrayList getSessionCmd(int speed, int mode, boolean multi, java.lang.String mcn, java.lang.String[] tracks, boolean[] types, DiscInfo info, java.io.File tempDir) throws java.io.IOException
getSessionCmd
in class ShellBurner
speed
- mode
- multi
- mcn
- tracks
- types
- info
- tempDir
- java.io.IOException
- protected java.util.ArrayList getStreamingCmd(int speed, int mode, boolean multi, java.lang.String mcn, boolean type, TocEntry cdText)
getStreamingCmd
in class ShellBurner
speed
- mode
- multi
- mcn
- type
- cdText
- protected boolean readSessionOutput(java.lang.String str) throws java.lang.Exception
readSessionOutput
in class ShellBurner
str
- the line of output.java.lang.Exception
- protected void cleanupErase() throws java.lang.Exception
cleanupErase
in class ShellBurner
java.lang.Exception
- protected void cleanupMsinfo() throws java.lang.Exception
cleanupMsinfo
in class ShellBurner
java.lang.Exception
- protected void cleanupSession(java.io.File tempDir) throws java.lang.Exception
cleanupSession
in class ShellBurner
java.lang.Exception
- public void erase(int mode) throws java.lang.Exception
Burner
erase
in interface Burner
erase
in class ShellBurner
com.tuneology.avm.burner.Burner
mode
- the erase mode, one of the BLANK_ constants,
optionally or'ed with BLANK_FORCE.java.lang.Exception
- public static int getCapabilities()
protected java.util.ArrayList getEraseCmd(int mode)
ShellBurner
getEraseCmd
in class ShellBurner
com.tuneology.avm.burner.ShellBurner
mode
- the desired erase modeprotected boolean readEraseOutput(java.lang.String str)
ShellBurner
readEraseOutput
in class ShellBurner
com.tuneology.avm.burner.ShellBurner
str
- the line of output.protected java.util.ArrayList getCopyCmd(CDDrive src, int speed, boolean onTheFly)
ShellBurner
getCopyCmd
in class ShellBurner
src
- speed
- onTheFly
- protected boolean readCopyOutput(java.lang.String str) throws java.lang.Exception
ShellBurner
readCopyOutput
in class ShellBurner
str
- protected java.util.ArrayList getAtipCmd()
ShellBurner
getAtipCmd
in class ShellBurner
com.tuneology.avm.burner.ShellBurner
protected boolean readAtipOutput(java.lang.String str)
ShellBurner
readAtipOutput
in class ShellBurner
com.tuneology.avm.burner.ShellBurner
str
- the line of output.protected java.util.ArrayList getMsinfoCmd()
ShellBurner
getMsinfoCmd
in class ShellBurner
com.tuneology.avm.burner.ShellBurner
protected boolean readMsinfoOutput(java.lang.String str)
ShellBurner
readMsinfoOutput
in class ShellBurner
com.tuneology.avm.burner.ShellBurner
str
- the line of output.public static java.lang.String getVersionString()
public static void setCdrdaoCmd(java.lang.String str) throws java.lang.Exception
str
- the pathname to the cdrdao executabls.public static java.lang.String getDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |