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

FrameBodyRBUF

public class FrameBodyRBUF extends AbstractID3v2FrameBody implements ID3v24FrameBody, ID3v23FrameBody
Body of Recommended buffer size frame, generally used for streaming audio

Fields Summary
private static int
BUFFER_FIELD_SIZE
private static int
EMBED_FLAG_BIT_POSITION
private static int
OFFSET_FIELD_SIZE
Constructors Summary
public FrameBodyRBUF()
Creates a new FrameBodyRBUF datatype.


              
     
    
        this.setObjectValue(DataTypes.OBJ_BUFFER_SIZE, (byte) 0);
        this.setObjectValue(DataTypes.OBJ_EMBED_FLAG, Boolean.FALSE);
        this.setObjectValue(DataTypes.OBJ_OFFSET, (byte) 0);
    
public FrameBodyRBUF(FrameBodyRBUF body)

        super(body);
    
public FrameBodyRBUF(byte bufferSize, boolean embeddedInfoFlag, byte offsetToNextTag)
Creates a new FrameBodyRBUF datatype.

param
bufferSize
param
embeddedInfoFlag
param
offsetToNextTag

        this.setObjectValue(DataTypes.OBJ_BUFFER_SIZE, bufferSize);
        this.setObjectValue(DataTypes.OBJ_EMBED_FLAG, embeddedInfoFlag);
        this.setObjectValue(DataTypes.OBJ_OFFSET, offsetToNextTag);
    
public FrameBodyRBUF(ByteBuffer byteBuffer, int frameSize)
Creates a new FrameBodyRBUF datatype.

param
byteBuffer
param
frameSize
throws
InvalidTagException if unable to create framebody from buffer

        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_RECOMMENDED_BUFFER_SIZE;
    
protected voidsetupObjectList()

        objectList.add(new NumberFixedLength(DataTypes.OBJ_BUFFER_SIZE, this, BUFFER_FIELD_SIZE));
        objectList.add(new BooleanByte(DataTypes.OBJ_EMBED_FLAG, this, (byte) EMBED_FLAG_BIT_POSITION));
        objectList.add(new NumberFixedLength(DataTypes.OBJ_OFFSET, this, OFFSET_FIELD_SIZE));