org.mmbase.service.implementations.cdplayers
Class LiteOn242Linux

java.lang.Object
  |
  +--org.mmbase.service.implementations.cdplayers.LiteOn242Linux
All Implemented Interfaces:
cdplayerInterface, serviceInterface

public class LiteOn242Linux
extends java.lang.Object
implements cdplayerInterface

Version:
$Revision: 1.5 $ $Date: 2001/04/19 13:37:00 $
Author:
Daniel,Marcel

Constructor Summary
LiteOn242Linux()
           
 
Method Summary
 java.lang.String convertMinutesSeconds(int time)
           
 java.lang.String ejectCD()
           
 java.lang.String getCdInfoViaCdda2wav()
           
 java.lang.String getCdInfoViaCdthing()
          Execute cdthing and buffer output.
 int getCDLength()
           
 java.lang.String getDiscID()
           
 void getInfo()
           
 java.lang.String getInfoCDtoString()
           
 java.lang.String getListCD()
           
 int getNumberOfTracks()
           
 java.lang.String getStatusCD()
           
 int getTrack(int number, java.lang.String filename)
          Actually performs the ripping by executing cdda2wav.
 int getTrackLength(int number)
           
 java.lang.String getVersion()
           
static void main(java.lang.String[] args)
           
 java.lang.String randomCD()
           
 void shutDown()
           
 java.lang.String startCD()
           
 java.lang.String startCD(java.lang.String number)
           
 void startUp()
           
 java.lang.String stopCD()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiteOn242Linux

public LiteOn242Linux()
Method Detail

startUp

public void startUp()
Specified by:
startUp in interface serviceInterface

shutDown

public void shutDown()
Specified by:
shutDown in interface serviceInterface

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface cdplayerInterface

getStatusCD

public java.lang.String getStatusCD()

getListCD

public java.lang.String getListCD()
Specified by:
getListCD in interface cdplayerInterface

startCD

public java.lang.String startCD(java.lang.String number)

startCD

public java.lang.String startCD()

stopCD

public java.lang.String stopCD()

ejectCD

public java.lang.String ejectCD()

randomCD

public java.lang.String randomCD()

getTrack

public int getTrack(int number,
                    java.lang.String filename)
Actually performs the ripping by executing cdda2wav.
Specified by:
getTrack in interface cdplayerInterface
Parameters:
number -  
filename -  
Returns:
the proces exitvalue 0 ok or !0 when something goesx wroing.

getInfo

public void getInfo()

getInfoCDtoString

public java.lang.String getInfoCDtoString()
Specified by:
getInfoCDtoString in interface cdplayerInterface

getCdInfoViaCdthing

public java.lang.String getCdInfoViaCdthing()
Execute cdthing and buffer output. Output looks like this: cdthing version 1.4 by Dustin Sallings 1: 8:42 2: 10:49 ............. 8: 3:40 Found 8 tracks
Returns:
String output from cdthing

getCdInfoViaCdda2wav

public java.lang.String getCdInfoViaCdda2wav()

getDiscID

public java.lang.String getDiscID()

getTrackLength

public int getTrackLength(int number)
Parameters:
int - track-number
Returns:
track-length in seconds

getCDLength

public int getCDLength()

getNumberOfTracks

public int getNumberOfTracks()

convertMinutesSeconds

public java.lang.String convertMinutesSeconds(int time)

main

public static void main(java.lang.String[] args)


MMBase 2001