com.tuneology.avm.ripper
Class CdparanoiaRipper

java.lang.Object
  |
  +--com.tuneology.avm.ripper.ShellRipper
        |
        +--com.tuneology.avm.ripper.CdparanoiaRipper
All Implemented Interfaces:
Ripper

public class CdparanoiaRipper
extends ShellRipper
implements Ripper

An interface to cdparanoia, an Audio CD ripper for Linux.

Version:
$Id: CdparanoiaRipper.java,v 1.10 2003/05/30 07:21:03 xnarf Exp $
Author:
Fran Taylor

Fields inherited from class com.tuneology.avm.ripper.ShellRipper
dev, drive, genericDev, scsiId
 
Constructor Summary
CdparanoiaRipper(CDDrive drive)
           
 
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 cdparanoia command necessary to read the specified track.
static java.lang.String getDescription()
           
static java.lang.String getVersionString()
          Returns a string containing readcd's version information.
protected  boolean processLine(java.lang.String str, RipStatus stat)
          Extract useful information from the lines of text produced by cdparanoia as it runs.
static void setCdparanoiaCmd(java.lang.String str)
          Sets the shell command used to execute cdparanoia.
 
Methods inherited from class com.tuneology.avm.ripper.ShellRipper
getProcessOutput, ripTrack
 
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.ripper.Ripper
getProcessOutput, ripTrack
 

Constructor Detail

CdparanoiaRipper

public CdparanoiaRipper(CDDrive drive)
Method Detail

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 cdparanoia 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 cdparanoia command

processLine

protected boolean processLine(java.lang.String str,
                              RipStatus stat)
                       throws java.lang.Exception
Extract useful information from the lines of text produced by cdparanoia as it runs.
Overrides:
processLine in class ShellRipper
Parameters:
str -  
Returns:
true if the line is to be logged, false otherwise.
Throws:
java.lang.Exception -  

getVersionString

public static java.lang.String getVersionString()
Returns a string containing readcd's version information.
Returns:
a string containing version information.

setCdparanoiaCmd

public static void setCdparanoiaCmd(java.lang.String str)
                             throws java.lang.Exception
Sets the shell command used to execute cdparanoia.
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()