|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.cddb.FuzzyLookup
public class FuzzyLookup
FuzzyLookup provides a mapping between CDID and CDDBRecord objects, to support inexact matches for FileCDDB queries. The mapping is based on previous lookups on FreeDB. The mapping is done simply by providing a list of other 'similar' discIDs given a specific discID. These discIDs can then be used to match CDID and CDDBRecords.
CDID,
CDDBRecord,
FileCDDB,
Serialized Form| Constructor Summary | |
|---|---|
FuzzyLookup()
|
|
| Method Summary | |
|---|---|
String[] |
addMatch(String discID,
String[] similarDiscIDs)
adds the given mapping to the table |
void |
exportToFile(File file)
exports all map entries into a file. |
String[] |
findMatch(CDID cd)
retrieves a list of discIDs similar to the one given - if available |
String[] |
findMatch(String discID)
|
void |
importFromFile(File file)
imports the map from a file; each entry is put into the current map |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FuzzyLookup()
| Method Detail |
|---|
public String[] findMatch(CDID cd)
public String[] findMatch(String discID)
public String[] addMatch(String discID,
String[] similarDiscIDs)
public void importFromFile(File file)
throws IOException
IOExceptionexportToFile(File)
public void exportToFile(File file)
throws IOException
IOException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||