com.tuneology.avm.ripper
Class ReadcdRipper

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

public class ReadcdRipper
extends ShellRipper
implements Ripper

Interface to readcd, a program for ripping data tracks from CD-ROMs.

Version:
$Id: ReadcdRipper.java,v 1.8 2003/05/30 07:21:04 xnarf Exp $
Author:
Fran Taylor

Fields inherited from class com.tuneology.avm.ripper.ShellRipper
dev, drive, genericDev, scsiId
 
Constructor Summary
ReadcdRipper(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 readcd command necessary to read the specified track.
static java.lang.String getDescription()
          Returns a decription of the ripper.
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 the program as it runs.
static void setReadcdCmd(java.lang.String str)
          Sets the shell command used to execute readcd.
 
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

ReadcdRipper

public ReadcdRipper(CDDrive drive)
Parameters:
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 readcd 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 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 the program as it runs.
Overrides:
processLine in class ShellRipper
Parameters:
str -  
Returns:
true if the line is to be logged, false otherwise.

setReadcdCmd

public static void setReadcdCmd(java.lang.String str)
                         throws java.lang.Exception
Sets the shell command used to execute readcd.
Parameters:
str - the desired shell command.
Throws:
java.lang.Exception - if there is a problem with the specified path.

getVersionString

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

getDescription

public static java.lang.String getDescription()
Returns a decription of the ripper.
Returns:
a decription of the ripper.