Package com.tagtraum.audiokern
Interface AudioArtwork
-
- All Known Subinterfaces:
Artwork
- All Known Implementing Classes:
StandardAudioArtwork
public interface AudioArtwork
Audio related artwork. Some, but not allAudioFileFormat
s support differentAudioArtwork.Kind
s of artwork.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AudioArtwork.Kind
Kind of artwork, inspired by id3 2.4, APIC.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
freeResources()
Free resources that can be easily reloaded.Image
getImage()
Image object.byte[]
getImageData()
Encoded image data.AudioArtwork.Kind
getKind()
Kind of artwork.String
getMimeType()
Mime type.URI
getURI()
URI of this artwork.
-
-
-
Method Detail
-
getImage
Image getImage()
Image object.- Returns:
- image
-
getImageData
byte[] getImageData()
Encoded image data. Image data that looks exactly like the data usually stored in a file. This means, for a PNG image, this method will return the PNG encoded data.- Returns:
- encoded image data
-
getMimeType
String getMimeType()
Mime type. Usually something likeimage/jpeg
.- Returns:
- mime type, if known. Otherwise
null
-
getKind
AudioArtwork.Kind getKind()
Kind of artwork.- Returns:
- kind
-
getURI
URI getURI()
URI of this artwork. May benull
, if not available.- Returns:
- uri or
null
-
freeResources
default void freeResources()
Free resources that can be easily reloaded. By default, this method does nothing.
-
-