com.tuneology.avm.ripper
Class AkRipper
java.lang.Object
|
+--com.tuneology.avm.ripper.AkRipper
- All Implemented Interfaces:
- Ripper
- public class AkRipper
- extends java.lang.Object
- implements Ripper
An interface to AkRip, a Windows DLL for ripping audio tracks.
- Version:
- $Id: AkRipper.java,v 1.6 2003/05/10 06:40:11 xnarf Exp $
- Author:
- Fran Taylor
Method Summary |
static java.lang.String |
getDescription()
Returns a description of the ripper. |
java.lang.String |
getProcessOutput()
Returns the output from the process (nothing in this case). |
static java.lang.String |
getVersionString()
Returns the version of Akrip used. |
java.io.InputStream |
ripTrack(int track,
int startIndex,
int len,
int bufsiz,
RipStatus stat)
Starts ripping the specified audio track from the disc. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AkRipper
public AkRipper(CDDrive drive)
- Constructor.
- Parameters:
drive
-
ripTrack
public java.io.InputStream ripTrack(int track,
int startIndex,
int len,
int bufsiz,
RipStatus stat)
throws java.lang.Exception
- Starts ripping the specified audio track from the disc. Returns a stream
object that will contain the data.
- Specified by:
ripTrack
in interface Ripper
- Parameters:
track
- which track to ripstartIndex
- where in the track to start rippinglen
- the amount of data to read, -1 for the whole trackbufsiz
- the buffer size to use for reading.- Returns:
- A stream containing the track data.
- Throws:
java.lang.Exception
- If an unrecoverable error occurs while reading the track.
getVersionString
public static java.lang.String getVersionString()
- Returns the version of Akrip used.
- Returns:
- the version of akrip.
getProcessOutput
public java.lang.String getProcessOutput()
- Returns the output from the process (nothing in this case).
- Specified by:
getProcessOutput
in interface Ripper
- Returns:
- An empty string.
getDescription
public static java.lang.String getDescription()
- Returns a description of the ripper.
- Returns:
- a description.