Code Examples

Jaudiotagger provides a common API for adding and reading artwork images, this is required because they are binary and each audio format has a different way of dealing with artwork.

The Artwork class provides method to create from a file or a binary data stream and methods to retrieve the binary data, mimeType and description. Links to an image instead of embedding the image are also supported.

The key methods for reading artwork are


public List getArtworkList()
public Artwork getFirstArtwork()

For writing artwork use


public void addField(Artwork artwork)
public void setField(Artwork artwork)