FileDocCategorySizeDatePackage
AbstractAsfTagImageField.javaAPI DocJaudiotagger 2.0.42031Thu Apr 28 21:18:00 BST 2011org.jaudiotagger.tag.asf

AbstractAsfTagImageField

public abstract class AbstractAsfTagImageField extends AsfTagField
An AbstractAsfTagImageField is an abstract class for representing tag fields containing image data.
author
Christian Laireiter

Fields Summary
Constructors Summary
public AbstractAsfTagImageField(AsfFieldKey field)
Creates a image tag field.

param
field the ASF field that should be represented.

        super(field);
    
public AbstractAsfTagImageField(org.jaudiotagger.audio.asf.data.MetadataDescriptor source)
Creates an instance.

param
source The descriptor which should be represented as a {@link TagField}.

        super(source);
    
public AbstractAsfTagImageField(String fieldKey)
Creates a tag field.

param
fieldKey The field identifier to use.

        super(fieldKey);
    
Methods Summary
public java.awt.image.BufferedImagegetImage()
This method returns an image instance from the {@linkplain #getRawImageData() image content}.

return
the image instance
throws
IOException

        return ImageIO.read(new ByteArrayInputStream(getRawImageData()));
    
public abstract intgetImageDataSize()
Returns the size of the {@linkplain #getRawImageData() image data}.

return
image data size in bytes.

public abstract byte[]getRawImageData()
Returns the raw data of the represented image.

return
raw image data