net.datacrow.util.freedb
Class Freedb
java.lang.Object
net.datacrow.util.freedb.Freedb
public class Freedb
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Freedb
public Freedb()
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