org.jaudiotagger.audio.asf.tag
Class AsfTagBannerField

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

public class AsfTagBannerField
extends AbstractAsfTagImageField

This field represents the image content of the banner image which is stored in the content branding chunk of ASF files.

Author:
Christian Laireiter

Field Summary
 
Fields inherited from class org.jaudiotagger.audio.asf.tag.AsfTagField
toWrap
 
Constructor Summary
AsfTagBannerField()
          Creates an instance with no image data.
AsfTagBannerField(byte[] imageData)
          Creates an instance with specified data as image content.
AsfTagBannerField(MetadataDescriptor descriptor)
          Creates an instance with given descriptor as image content.
 
Method Summary
 int getImageDataSize()
          Returns the size of the image data.
 byte[] getRawImageData()
          Returns the raw data of the represented image.
 
Methods inherited from class org.jaudiotagger.audio.asf.tag.AbstractAsfTagImageField
getImage
 
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

AsfTagBannerField

public AsfTagBannerField()
Creates an instance with no image data.


AsfTagBannerField

public AsfTagBannerField(MetadataDescriptor descriptor)
Creates an instance with given descriptor as image content.

Parameters:
descriptor - image content.

AsfTagBannerField

public AsfTagBannerField(byte[] imageData)
Creates an instance with specified data as image content.

Parameters:
imageData - image content.
Method Detail

getImageDataSize

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

Specified by:
getImageDataSize in class AbstractAsfTagImageField
Returns:
image data size in bytes.

getRawImageData

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

Specified by:
getRawImageData in class AbstractAsfTagImageField
Returns:
raw image data