org.jaudiotagger.audio.asf.tag
Class AbstractAsfTagImageField

java.lang.Object
  extended by org.jaudiotagger.audio.asf.tag.AsfTagField
      extended by org.jaudiotagger.audio.asf.tag.AbstractAsfTagImageField
All Implemented Interfaces:
java.lang.Cloneable, TagField
Direct Known Subclasses:
AsfTagBannerField, AsfTagCoverField

abstract class AbstractAsfTagImageField
extends AsfTagField

An AbstractAsfTagImageField is an abstract class for representing tag fields containing image data.

Author:
Christian Laireiter

Field Summary
 
Fields inherited from class org.jaudiotagger.audio.asf.tag.AsfTagField
toWrap
 
Constructor Summary
AbstractAsfTagImageField(AsfFieldKey field)
          Creates a image tag field.
AbstractAsfTagImageField(MetadataDescriptor source)
          Creates an instance.
AbstractAsfTagImageField(java.lang.String fieldKey)
          Creates a tag field.
 
Method Summary
 java.awt.image.BufferedImage getImage()
          This method returns an image instance from the image content.
abstract  int getImageDataSize()
          Returns the size of the image data.
abstract  byte[] getRawImageData()
          Returns the raw data of the represented image.
 
Methods inherited from class org.jaudiotagger.audio.asf.tag.AsfTagField
clone, copyContent, getDescriptor, getId, getRawContent, isBinary, isBinary, isCommon, isEmpty, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAsfTagImageField

public AbstractAsfTagImageField(AsfFieldKey field)
Creates a image tag field.

Parameters:
field - the ASF field that should be represented.

AbstractAsfTagImageField

public AbstractAsfTagImageField(MetadataDescriptor source)
Creates an instance.

Parameters:
source - The descriptor which should be represented as a TagField.

AbstractAsfTagImageField

public AbstractAsfTagImageField(java.lang.String fieldKey)
Creates a tag field.

Parameters:
fieldKey - The field identifier to use.
Method Detail

getImage

public java.awt.image.BufferedImage getImage()
                                      throws java.io.IOException
This method returns an image instance from the image content.

Returns:
the image instance
Throws:
java.io.IOException

getImageDataSize

public abstract int getImageDataSize()
Returns the size of the image data.

Returns:
image data size in bytes.

getRawImageData

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

Returns:
raw image data