com.tuneology.avm.ripper
Class Cdda2wavRipper
java.lang.Object
|
+--com.tuneology.avm.ripper.ShellRipper
|
+--com.tuneology.avm.ripper.Cdda2wavRipper
- All Implemented Interfaces:
- Ripper
- public class Cdda2wavRipper
- extends ShellRipper
- implements Ripper
An interface to cdda2wav, a program for ripping audio tracks.
- Version:
- $Id: Cdda2wavRipper.java,v 1.10 2003/06/07 15:31:41 xnarf Exp $
- Author:
- Fran Taylor
Method Summary |
protected java.lang.String[] |
getCmd(int trk,
int startindex,
int len,
java.lang.String path)
Returns a shell command, in the form of an array of strings,
that will execute the cdda2wav command necessary to read the
specified track. |
static java.lang.String |
getDescription()
|
static java.lang.String |
getVersionString()
|
protected boolean |
processLine(java.lang.String str,
RipStatus stat)
Extract useful information from the lines of text produced by
cdda2wav as it runs. |
static void |
setCdda2wavCmd(java.lang.String str)
Sets the shell command used to execute cdda2wav. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cdda2wavRipper
public Cdda2wavRipper(CDDrive drive)
getCmd
protected java.lang.String[] getCmd(int trk,
int startindex,
int len,
java.lang.String path)
- Returns a shell command, in the form of an array of strings,
that will execute the cdda2wav command necessary to read the
specified track.
- Overrides:
getCmd
in class ShellRipper
- Parameters:
trk
- the track to read.startIndex
- where to start reading in the track.len
- the number of blocks to read.path
- the path of the file where the track data is to be written.- Returns:
- the cdda2wav command
processLine
protected boolean processLine(java.lang.String str,
RipStatus stat)
throws java.io.IOException
- Extract useful information from the lines of text produced by
cdda2wav as it runs.
- Overrides:
processLine
in class ShellRipper
- Parameters:
str
- - Returns:
- true if the line is to be logged, false otherwise.
- Throws:
java.io.IOException
-
setCdda2wavCmd
public static void setCdda2wavCmd(java.lang.String str)
throws java.lang.Exception
- Sets the shell command used to execute cdda2wav.
- Parameters:
str
- the desired shell command.- Throws:
java.lang.Exception
- if there is a problem with the
specified path.
getDescription
public static java.lang.String getDescription()
- Returns:
- the description of the ripper.
getVersionString
public static java.lang.String getVersionString()