Package ui.tools
Klasse FingerprintingClient
java.lang.Object
ui.tools.FingerprintingClient
- Alle implementierten Schnittstellen:
FingerPrintingDataSource
This currently unused class makes it possible to create/fill the
fingerprinting database on a remote machine running JSIDPlay2Server. As an
alternative the WhatssSidService implementation is used, instead, to create
the database by the tool FingerPrintingCreator on the same machine.
- Autor:
- ken
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFingerprintingClient(String url, String username, String password, int connectionTimeout) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindHashes(IntArrayBean intArray) Find hashes of an already existing tune.findTune(SongNoBean songNoBean) Find a matched tune.voidinsertHashes(HashBeans hashBeans) Insert the hashes of a new tune into the database.insertTune(MusicInfoBean musicInfoBean) Insert a new tune into the database.private <T> Treceive(Class<T> theClass, HttpURLConnection connection) private <T> HttpURLConnectionvoidsetUseXml(boolean useXml) booleantuneExists(MusicInfoBean musicInfoBean) Check if a tune is already in the database.
-
Felddetails
-
url
-
username
-
password
-
connectionTimeout
private int connectionTimeout -
useXml
private boolean useXml
-
-
Konstruktordetails
-
FingerprintingClient
-
-
Methodendetails
-
setUseXml
public void setUseXml(boolean useXml) -
insertTune
Beschreibung aus Schnittstelle kopiert:FingerPrintingDataSourceInsert a new tune into the database. First step of inserting a tune with hashes.- Angegeben von:
insertTunein SchnittstelleFingerPrintingDataSource- Parameter:
musicInfoBean- tune information- Gibt zurück:
- tune id
-
insertHashes
Beschreibung aus Schnittstelle kopiert:FingerPrintingDataSourceInsert the hashes of a new tune into the database. Last step of inserting a tune with hashes.- Angegeben von:
insertHashesin SchnittstelleFingerPrintingDataSource- Parameter:
hashBeans- generated hashes of the fingerprinted tune
-
findHashes
Beschreibung aus Schnittstelle kopiert:FingerPrintingDataSourceFind hashes of an already existing tune. First step of matching a tune.- Angegeben von:
findHashesin SchnittstelleFingerPrintingDataSource- Parameter:
intArray- hashes of an already existing tune to match.- Gibt zurück:
- matching hashes
-
findTune
Beschreibung aus Schnittstelle kopiert:FingerPrintingDataSourceFind a matched tune. Last step of matching a tune.- Angegeben von:
findTunein SchnittstelleFingerPrintingDataSource- Parameter:
songNoBean- matched song number- Gibt zurück:
- music info of a matched tune
-
tuneExists
Beschreibung aus Schnittstelle kopiert:FingerPrintingDataSourceCheck if a tune is already in the database. Call this prior to inserting a new tune.- Angegeben von:
tuneExistsin SchnittstelleFingerPrintingDataSource- Parameter:
musicInfoBean- tune information- Gibt zurück:
- tune exists
-
send
private <T> HttpURLConnection send(T parameter, Class<T> tClass, String requestPath, String requestMethod) throws MalformedURLException, IOException, ProtocolException, JAXBException, URISyntaxException -
receive
-