net.sf.ext.util
Class DiscIDReader

java.lang.Object
  extended bynet.sf.ext.util.DiscIDReader

public class DiscIDReader
extends java.lang.Object

Reads the disc id from an audio CD. Done by calling a platform specific script / executable.

Since:
1.4
Version:
2.3
Author:
Robert Jan van der Waals

Constructor Summary
DiscIDReader()
           
 
Method Summary
 boolean isSuccess()
          Indicates whether the disc ID was read succesfully
 java.lang.String readDiscID()
          Read the disc ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscIDReader

public DiscIDReader()
Method Detail

isSuccess

public boolean isSuccess()
Indicates whether the disc ID was read succesfully

Returns:
success indicator

readDiscID

public java.lang.String readDiscID()
                            throws java.io.IOException
Read the disc ID. The disc ID is read in a seperate process as this is done platform dependend.

Returns:
valid disc id (with track offsets)
Throws:
java.io.IOException