Example #1
0
 /**
  * Populate Artwork from MetadataBlockDataPicture as used by Flac and VorbisComment
  *
  * @param coverArt
  */
 public void setFromMetadataBlockDataPicture(MetadataBlockDataPicture coverArt) {
   setMimeType(coverArt.getMimeType());
   setDescription(coverArt.getDescription());
   setPictureType(coverArt.getPictureType());
   if (coverArt.isImageUrl()) {
     setLinked(coverArt.isImageUrl());
     setImageUrl(coverArt.getImageUrl());
   } else {
     setBinaryData(coverArt.getImageData());
   }
   setWidth(coverArt.getWidth());
   setHeight(coverArt.getHeight());
 }
Example #2
0
 /**
  * Create Linked Artwork from URL
  *
  * @param url
  * @throws java.io.IOException
  */
 public void setLinkedFromURL(String url) throws IOException {
   setLinked(true);
   setImageUrl(url);
 }