FileDocCategorySizeDatePackage
AsfTagBannerField.javaAPI DocJaudiotagger 2.0.41850Wed Mar 30 16:12:10 BST 2011org.jaudiotagger.tag.asf

AsfTagBannerField

public class AsfTagBannerField extends org.jaudiotagger.tag.asf.AbstractAsfTagImageField
This field represents the image content of the banner image which is stored in the {@linkplain ContentBranding content branding} chunk of ASF files.
author
Christian Laireiter

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

        super(AsfFieldKey.BANNER_IMAGE);
    
public AsfTagBannerField(org.jaudiotagger.audio.asf.data.MetadataDescriptor descriptor)
Creates an instance with given descriptor as image content.

param
descriptor image content.

        super(descriptor);
        assert descriptor.getName().equals(
                AsfFieldKey.BANNER_IMAGE.getFieldName());
    
public AsfTagBannerField(byte[] imageData)
Creates an instance with specified data as image content.

param
imageData image content.

        super(new MetadataDescriptor(ContainerType.CONTENT_BRANDING,
                AsfFieldKey.BANNER_IMAGE.getFieldName(),
                MetadataDescriptor.TYPE_BINARY));
        this.toWrap.setBinaryValue(imageData);
    
Methods Summary
public intgetImageDataSize()
{@inheritDoc}

        return this.toWrap.getRawDataSize();
    
public byte[]getRawImageData()
{@inheritDoc}

        return getRawContent();