|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaudiotagger.tag.id3.AbstractTagItem
org.jaudiotagger.tag.id3.AbstractTagFrameBody
org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
org.jaudiotagger.tag.id3.framebody.FrameBodyPIC
public class FrameBodyPIC
ID3v22 Attached Picture
This frame contains a picture directly related to the audio file. Image format is preferably "PNG" [PNG] or "JPG" [JFIF]. Description is a short description of the picture, represented as a terminated textstring. The description has a maximum length of 64 characters, but may be empty. There may be several pictures attached to one file, each in their individual "PIC" frame, but only one with the same ontent descriptor. There may only be one picture with the picture type declared as picture type $01 and $02 respectively. There is a possibility to put only a link to the image file by using the 'image format' "-->" and having a complete URL [URL] instead of picture data. The use of linked files should however be used restrictively since there is the risk of separation of files.
Field Summary | |
---|---|
static java.lang.String |
IMAGE_IS_URL
|
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
---|
logger |
Constructor Summary | |
---|---|
FrameBodyPIC()
Creates a new FrameBodyPIC datatype. |
|
FrameBodyPIC(java.nio.ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBodyPIC datatype. |
|
FrameBodyPIC(byte textEncoding,
java.lang.String imageFormat,
byte pictureType,
java.lang.String description,
byte[] data)
Creates a new FrameBodyPIC datatype. |
|
FrameBodyPIC(FrameBodyAPIC body)
Conversion from v2 PIC to v3/v4 APIC |
|
FrameBodyPIC(FrameBodyPIC body)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get a description of the image |
java.lang.String |
getFormatType()
Get a description of the image |
java.lang.String |
getIdentifier()
The ID3v2 frame identifier |
boolean |
isImageUrl()
|
void |
setDescription(java.lang.String description)
Set a description of the image |
void |
write(java.io.ByteArrayOutputStream tagBuffer)
If the description cannot be encoded using current encoder, change the encoder |
Methods inherited from class org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody |
---|
createStructure, equals, getSize, read, setSize, setSize |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody |
---|
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IMAGE_IS_URL
Constructor Detail |
---|
public FrameBodyPIC()
public FrameBodyPIC(FrameBodyPIC body)
public FrameBodyPIC(byte textEncoding, java.lang.String imageFormat, byte pictureType, java.lang.String description, byte[] data)
textEncoding
- imageFormat
- pictureType
- description
- data
- public FrameBodyPIC(FrameBodyAPIC body)
public FrameBodyPIC(java.nio.ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
InvalidTagException
- if unable to create framebody from bufferMethod Detail |
---|
public void setDescription(java.lang.String description)
description
- of the imagepublic java.lang.String getDescription()
public java.lang.String getIdentifier()
getIdentifier
in class AbstractID3v2FrameBody
public void write(java.io.ByteArrayOutputStream tagBuffer)
write
in class AbstractID3v2FrameBody
public java.lang.String getFormatType()
public boolean isImageUrl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |