net.sourceforge.atunes.kernel.modules.repository.tags.tag.image
Class InternalPictureTagger

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.repository.tags.tag.image.InternalPictureTagger

public class InternalPictureTagger
extends java.lang.Object

Tagger for internal pictures


Constructor Summary
InternalPictureTagger()
           
 
Method Summary
static void addPictureToTag(byte[] image, Tag tag)
          Adds a picture to a tag
static byte[] getInsidePictureAsByteArray(AudioFile file)
          Returns image stored into audio file as byte array, if exists.
static boolean hasInternalPicture(Tag tag)
          Checks if a tag has an internal picture
static boolean supportsInternalPicture(Tag tag)
          Checks if a tag does support internal images
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalPictureTagger

public InternalPictureTagger()
Method Detail

addPictureToTag

public static void addPictureToTag(byte[] image,
                                   Tag tag)
Adds a picture to a tag

Parameters:
image - the picture that should be added, if null all pictures will be deleted
tag - the tag

hasInternalPicture

public static boolean hasInternalPicture(Tag tag)
Checks if a tag has an internal picture

Parameters:
tag - Tag
Returns:
if a tag has an internal picture

getInsidePictureAsByteArray

public static byte[] getInsidePictureAsByteArray(AudioFile file)
Returns image stored into audio file as byte array, if exists.

Parameters:
file - the file
Returns:
the inside picture as byte array

supportsInternalPicture

public static boolean supportsInternalPicture(Tag tag)
Checks if a tag does support internal images

Parameters:
tag - tag
Returns:
if a tag does support internal images


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.