FileDocCategorySizeDatePackage
FrameBodyTCMP.javaAPI DocJaudiotagger 2.0.42015Wed Mar 30 16:12:02 BST 2011org.jaudiotagger.tag.id3.framebody

FrameBodyTCMP

public class FrameBodyTCMP extends AbstractFrameBodyTextInfo implements ID3v24FrameBody, ID3v23FrameBody
Is part of a Compilation (iTunes frame)

determines whether or not track is part of compilation

author
: Paul Taylor

Fields Summary
static String
IS_COMPILATION
Constructors Summary
public FrameBodyTCMP()
Creates a new FrameBodyTCMP datatype, with compilation enabled

This is the preferred constructor to use because TCMP frames should not exist unless they are set to true


                                     
     
    
        setObjectValue(DataTypes.OBJ_TEXT_ENCODING, TextEncoding.ISO_8859_1);
        setObjectValue(DataTypes.OBJ_TEXT, IS_COMPILATION);
    
public FrameBodyTCMP(FrameBodyTCMP body)

        super(body);
    
public FrameBodyTCMP(byte textEncoding, String text)
Creates a new FrameBodyTCMP datatype.

param
textEncoding
param
text

        super(textEncoding, text);
    
public FrameBodyTCMP(ByteBuffer byteBuffer, int frameSize)
Creates a new FrameBodyTIT1 datatype.

param
byteBuffer
param
frameSize
throws
InvalidTagException

        super(byteBuffer, frameSize);
    
Methods Summary
public java.lang.StringgetIdentifier()
The ID3v2 frame identifier

return
the ID3v2 frame identifier for this frame type

        return ID3v24Frames.FRAME_ID_IS_COMPILATION;
    
public booleanisCompilation()

        return this.getText().equals(IS_COMPILATION);