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

FrameBodyUnsupported

public class FrameBodyUnsupported extends AbstractID3v2FrameBody implements ID3v22FrameBody, ID3v24FrameBody, ID3v23FrameBody
Represents a framebody for a frame identifier jaudiotagger has not implemented a framebody for.

This is likley to be because the FrameBody is not specified in the Specification but it may just be because the code has yet to be written, the library uses this framebody when it cant find an alternative. This is different to the ID3v2ExtensionFrameBody Interface which should be implemented by frame bodies that are non standard such as iTunes compilation frame (TCMP) but are commonly used.

Fields Summary
private String
identifier
Because used by any unknown frame identifier varies
Constructors Summary
public FrameBodyUnsupported()

deprecated
because no identifier set


              
     
    

    
public FrameBodyUnsupported(String identifier)
Creates a new FrameBodyUnsupported

param
identifier

        this.identifier = identifier;
    
public FrameBodyUnsupported(String identifier, byte[] value)
Create a new FrameBodyUnsupported

param
identifier
param
value

        this.identifier = identifier;
        setObjectValue(DataTypes.OBJ_DATA, value);
    
public FrameBodyUnsupported(byte[] value)
Creates a new FrameBodyUnsupported datatype.

param
value
deprecated
because no identifier set

        setObjectValue(DataTypes.OBJ_DATA, value);
    
public FrameBodyUnsupported(FrameBodyUnsupported copyObject)
Copy constructor

param
copyObject a copy is made of this

        super(copyObject);
        this.identifier = copyObject.identifier;

    
public FrameBodyUnsupported(ByteBuffer byteBuffer, int frameSize)
Creates a new FrameBodyUnsupported datatype.

param
byteBuffer
param
frameSize
throws
InvalidFrameException if unable to create framebody from buffer
throws
org.jaudiotagger.tag.InvalidTagException

        super(byteBuffer, frameSize);
    
Methods Summary
public booleanequals(java.lang.Object obj)

param
obj
return
whether obj is equivalent to this object

        if (!(obj instanceof FrameBodyUnsupported))
        {
            return false;
        }

        FrameBodyUnsupported object = (FrameBodyUnsupported) obj;
        return this.identifier.equals(object.identifier) && super.equals(obj);
    
public java.lang.StringgetIdentifier()
Return the frame identifier

return
the identifier

        return identifier;
    
protected voidsetupObjectList()
Setup the Object List. A byte Array which will be read upto frame size bytes.

        objectList.add(new ByteArraySizeTerminated(DataTypes.OBJ_DATA, this));
    
public java.lang.StringtoString()
Because the contents of this frame are an array of bytes and could be large we just return the identifier.

return
a string representation of this frame

        return getIdentifier();