|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jaudiotagger.tag.asf.AsfTagField
org.jaudiotagger.tag.asf.AbstractAsfTagImageField
org.jaudiotagger.tag.asf.AsfTagCoverField
public class AsfTagCoverField
Encapsulates the WM/Pictures provides some convenience methods for decoding the binary data it contains
The value of a WM/Pictures metadata descriptor is as follows: byte0 Picture Type byte1-4 Length of the image data mime type encoded as UTF-16LE null byte null byte description encoded as UTF-16LE (optional) null byte null byte image data
| Field Summary | |
|---|---|
private java.lang.String |
description
Description |
private int |
endOfName
We need this to retrieve the buffered image, if required |
private int |
imageDataSize
Image Data Size as read |
static java.util.logging.Logger |
LOGGER
Logger Object |
private java.lang.String |
mimeType
Mimetype of binary |
private int |
pictureType
Picture Type |
| Fields inherited from class org.jaudiotagger.tag.asf.AsfTagField |
|---|
toWrap |
| Constructor Summary | |
|---|---|
AsfTagCoverField(byte[] imageData,
int pictureType,
java.lang.String description,
java.lang.String mimeType)
Create New Image Field |
|
AsfTagCoverField(MetadataDescriptor source)
Creates an instance from a metadata descriptor |
|
| Method Summary | |
|---|---|
private byte[] |
createRawContent(byte[] data,
int pictureType,
java.lang.String description,
java.lang.String mimeType)
|
java.lang.String |
getDescription()
|
int |
getImageDataSize()
Returns the size of the image data. |
java.lang.String |
getMimeType()
|
int |
getPictureType()
|
byte[] |
getRawImageData()
Returns the raw data of the represented image. |
private void |
processRawContent()
|
| Methods inherited from class org.jaudiotagger.tag.asf.AbstractAsfTagImageField |
|---|
getImage |
| Methods inherited from class org.jaudiotagger.tag.asf.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 |
| Field Detail |
|---|
public static final java.util.logging.Logger LOGGER
private java.lang.String description
private int endOfName
private int imageDataSize
private java.lang.String mimeType
private int pictureType
| Constructor Detail |
|---|
public AsfTagCoverField(byte[] imageData,
int pictureType,
java.lang.String description,
java.lang.String mimeType)
imageData - pictureType - description - mimeType - public AsfTagCoverField(MetadataDescriptor source)
source - The metadata descriptor, whose content is published.| Method Detail |
|---|
private byte[] createRawContent(byte[] data,
int pictureType,
java.lang.String description,
java.lang.String mimeType)
public java.lang.String getDescription()
public int getImageDataSize()
AbstractAsfTagImageField
getImageDataSize in class AbstractAsfTagImageFieldpublic java.lang.String getMimeType()
public int getPictureType()
public byte[] getRawImageData()
AbstractAsfTagImageField
getRawImageData in class AbstractAsfTagImageField
private void processRawContent()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||