net.datacrow.util.freedb
Class Freedb

java.lang.Object
  extended by net.datacrow.util.freedb.Freedb

public class Freedb
extends java.lang.Object


Constructor Summary
Freedb()
           
 
Method Summary
 DcObject convertToDcObject(FreedbQueryResult result)
          Converts a query result (not detailed) to a Data Crow Object
 DcObject convertToDcObject(FreedbReadResult result)
          Converts a read result (detailed) to a Data Crow Object
 java.lang.String[] getCategories()
           
 DcObject[] query(java.lang.String id)
          Queries the freedb server for the full id: Client command: -> cddb query discid ntrks off1 off2 ... nsecs After querying, the cd is queried by its discid and genre
 DcObject[] queryDiscId(java.lang.String discID)
           
 FreedbReadResult read(FreedbQueryResult query)
           
 FreedbReadResult read(java.lang.String genre, java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Freedb

public Freedb()
Method Detail

queryDiscId

public DcObject[] queryDiscId(java.lang.String discID)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getCategories

public java.lang.String[] getCategories()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

query

public DcObject[] query(java.lang.String id)
                 throws java.lang.Exception
Queries the freedb server for the full id: Client command: -> cddb query discid ntrks off1 off2 ... nsecs After querying, the cd is queried by its discid and genre

Parameters:
id - full disc id
Throws:
java.lang.Exception

read

public FreedbReadResult read(java.lang.String genre,
                             java.lang.String id)
                      throws java.lang.Exception
Throws:
java.lang.Exception

read

public FreedbReadResult read(FreedbQueryResult query)
                      throws java.lang.Exception
Throws:
java.lang.Exception

convertToDcObject

public DcObject convertToDcObject(FreedbQueryResult result)
Converts a query result (not detailed) to a Data Crow Object

Parameters:
result - query result

convertToDcObject

public DcObject convertToDcObject(FreedbReadResult result)
Converts a read result (detailed) to a Data Crow Object

Parameters:
result - read result