public class AsfTagCoverField extends AbstractAsfTagImageField
Modifier and Type | Field and Description |
---|---|
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
|
toWrap
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
getImage
clone, copyContent, getDescriptor, getId, getRawContent, isBinary, isBinary, isCommon, isEmpty, toString
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
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.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 AbstractAsfTagImageField
public 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
Copyright © 2005-2013 java.net. All Rights Reserved.