Package com.tagtraum.tunes
Class ITunesDownloadedArtwork
- java.lang.Object
-
- com.tagtraum.tunes.ITunesDownloadedArtwork
-
public class ITunesDownloadedArtwork extends Object
ITunes artwork downloaded from iTunes or representing files in the cloud.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description ITunesDownloadedArtwork(Path albumArtworkDir, long libraryId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAssociate(long songId)
Path
getImageFile(long songId)
static boolean
isPrimaryArtworkInCache(ITunesDownloadedArtwork tunesDownloadedArtwork, long songId, LibraryPlaylist libraryPlaylist)
static InputStream
openPrimaryArtworkStreamFromCache(ITunesDownloadedArtwork tunesDownloadedArtwork, long songId, LibraryPlaylist libraryPlaylist)
Path
registerAssociation(long songId, byte[] imageData)
void
removeFromCache(long songId)
static void
removeFromCache(ITunesDownloadedArtwork tunesDownloadedArtwork, long songId)
-
-
-
Constructor Detail
-
ITunesDownloadedArtwork
public ITunesDownloadedArtwork(Path albumArtworkDir, long libraryId)
-
-
Method Detail
-
canAssociate
public boolean canAssociate(long songId)
-
registerAssociation
public Path registerAssociation(long songId, byte[] imageData)
-
removeFromCache
public void removeFromCache(long songId)
-
getImageFile
public Path getImageFile(long songId)
-
removeFromCache
public static void removeFromCache(ITunesDownloadedArtwork tunesDownloadedArtwork, long songId)
-
openPrimaryArtworkStreamFromCache
public static InputStream openPrimaryArtworkStreamFromCache(ITunesDownloadedArtwork tunesDownloadedArtwork, long songId, LibraryPlaylist libraryPlaylist)
-
isPrimaryArtworkInCache
public static boolean isPrimaryArtworkInCache(ITunesDownloadedArtwork tunesDownloadedArtwork, long songId, LibraryPlaylist libraryPlaylist)
-
-