FileDocCategorySizeDatePackage
ArtworkFactory.javaAPI DocJaudiotagger 2.0.42245Wed Jun 08 11:06:58 BST 2011org.jaudiotagger.tag.images

ArtworkFactory

public class ArtworkFactory extends Object
Get appropriate Artwork class

Fields Summary
Constructors Summary
Methods Summary
public static ArtworkcreateArtworkFromFile(java.io.File file)
Create Artwork instance from an image file

param
file
return
throws
IOException

        //Normal
        if(!TagOptionSingleton.getInstance().isAndroid())
        {
            return StandardArtwork.createArtworkFromFile(file);
        }
        //Android
        else
        {
            return AndroidArtwork.createArtworkFromFile(file);
        }
    
public static ArtworkcreateArtworkFromMetadataBlockDataPicture(org.jaudiotagger.audio.flac.metadatablock.MetadataBlockDataPicture coverArt)
Create Artwork instance from A Flac Metadata Block

param
coverArt
return

        //Normal
        if(!TagOptionSingleton.getInstance().isAndroid())
        {
            return StandardArtwork.createArtworkFromMetadataBlockDataPicture(coverArt);
        }
        //Android
        else
        {
            return AndroidArtwork.createArtworkFromMetadataBlockDataPicture(coverArt);
        }
    
public static ArtworkcreateLinkedArtworkFromURL(java.lang.String link)
Create Artwork instance from an image file

param
link
return
throws
IOException

        //Normal
        if(!TagOptionSingleton.getInstance().isAndroid())
        {
            return StandardArtwork.createLinkedArtworkFromURL(link);
        }
        //Android
        else
        {
            return AndroidArtwork.createLinkedArtworkFromURL(link);
        }
    
public static ArtworkgetNew()

        //Normal
        if(!TagOptionSingleton.getInstance().isAndroid())
        {
            return new StandardArtwork();
        }
        //Android
        else
        {
            return new AndroidArtwork();
        }