net.sourceforge.atunes.kernel.modules.cdripper.cdda2wav
Class CdToWavConverter

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.cdripper.cdda2wav.CdToWavConverter
Direct Known Subclasses:
Cdda2wav, Cdparanoia

public abstract class CdToWavConverter
extends java.lang.Object

Abstract class for Cdda2wav and Cdparanoia


Field Summary
protected  CDInfo cd
          The cd.
protected  ProgressListener listener
          The listener.
protected  NoCdListener noCdListener
          The no cd listener.
protected  java.lang.Process process
          The process.
 
Constructor Summary
CdToWavConverter()
           
 
Method Summary
abstract  boolean cdda2wav(int track, java.io.File fileName)
           
static CdToWavConverter createNewConverterForOS()
          creates a new CdToWavConverter-object.
abstract  CDInfo getCDInfo()
           
 void notifyNoCd()
          Sets no CD found so a dialog gets displayed.
 void setListener(ProgressListener listener)
          Sets the listener.
 void setNoCdListener(NoCdListener noCdListener)
          Sets the no cd listener.
 void stop()
          Destroys the ripping process.
static boolean testTool()
          Tests if cdda2wav or icedax is present On Windows system cdda2wav is assumed present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected ProgressListener listener
The listener.


noCdListener

protected NoCdListener noCdListener
The no cd listener.


process

protected java.lang.Process process
The process.


cd

protected CDInfo cd
The cd.

Constructor Detail

CdToWavConverter

public CdToWavConverter()
Method Detail

createNewConverterForOS

public static CdToWavConverter createNewConverterForOS()
creates a new CdToWavConverter-object. The implementation depends on the users OS.


notifyNoCd

public void notifyNoCd()
Sets no CD found so a dialog gets displayed.


stop

public void stop()
Destroys the ripping process.


testTool

public static boolean testTool()
Tests if cdda2wav or icedax is present On Windows system cdda2wav is assumed present.

Returns:
true if either cdda2wav or icedax was found, false else.

cdda2wav

public abstract boolean cdda2wav(int track,
                                 java.io.File fileName)

getCDInfo

public abstract CDInfo getCDInfo()

setListener

public void setListener(ProgressListener listener)
Sets the listener.

Parameters:
listener - the new listener

setNoCdListener

public void setNoCdListener(NoCdListener noCdListener)
Sets the no cd listener.

Parameters:
noCdListener - the new no cd listener


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.