|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.varienaja.util.coverart.AbstractCoverArtFinder
org.varienaja.util.coverart.GoogleCoverArtFinder
public class GoogleCoverArtFinder
Constructor Summary | |
---|---|
GoogleCoverArtFinder()
|
Method Summary | |
---|---|
java.net.URI |
constructSearchURI(java.lang.String band,
java.lang.String albumtitle)
Gets the URI to call, in order to search for Covers from a certain Album of a Band. |
protected org.apache.log4j.Logger |
getLogger()
|
java.util.List<CoverArtSearchResult> |
procesSearchResult(java.io.InputStreamReader in)
Processes the InputStream of the URI from constructSearchURI(), and extracts a list of CoverArtSearchResult objects from it. |
Methods inherited from class org.varienaja.util.coverart.AbstractCoverArtFinder |
---|
findCoverURLs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GoogleCoverArtFinder()
Method Detail |
---|
public java.net.URI constructSearchURI(java.lang.String band, java.lang.String albumtitle) throws java.net.URISyntaxException
AbstractCoverArtFinder
constructSearchURI
in class AbstractCoverArtFinder
band
- The name of the Band.albumtitle
- The name of the Album.
java.net.URISyntaxException
- If both a scheme and a path are given but the
path is relative, if the URI string constructed from the given
components violates RFC 2396, or if the authority component of the
string is present but cannot be parsed as a server-based authority.public java.util.List<CoverArtSearchResult> procesSearchResult(java.io.InputStreamReader in) throws java.io.IOException
AbstractCoverArtFinder
procesSearchResult
in class AbstractCoverArtFinder
in
- The InputStream
java.io.IOException
- If an I/O error occurs.protected org.apache.log4j.Logger getLogger()
getLogger
in class AbstractCoverArtFinder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |