org.jaudiotagger.tag.id3.framebody
Class FrameBodyUnsupported

java.lang.Object
  extended by org.jaudiotagger.tag.id3.AbstractTagItem
      extended by org.jaudiotagger.tag.id3.AbstractTagFrameBody
          extended by org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
              extended by org.jaudiotagger.tag.id3.framebody.FrameBodyUnsupported
All Implemented Interfaces:
ID3v22FrameBody, ID3v23FrameBody, ID3v24FrameBody

public class FrameBodyUnsupported
extends AbstractID3v2FrameBody
implements ID3v24FrameBody, ID3v23FrameBody, ID3v22FrameBody

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.


Field Summary
private  java.lang.String identifier
          Because used by any unknown frame identifier varies
 
Fields inherited from class org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
TYPE_BODY
 
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody
objectList
 
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem
logger
 
Constructor Summary
FrameBodyUnsupported()
          Deprecated. because no identifier set
FrameBodyUnsupported(byte[] value)
          Deprecated. because no identifier set
FrameBodyUnsupported(java.nio.ByteBuffer byteBuffer, int frameSize)
          Creates a new FrameBodyUnsupported datatype.
FrameBodyUnsupported(FrameBodyUnsupported copyObject)
          Copy constructor
FrameBodyUnsupported(java.lang.String identifier)
          Creates a new FrameBodyUnsupported
FrameBodyUnsupported(java.lang.String identifier, byte[] value)
          Create a new FrameBodyUnsupported
 
Method Summary
 boolean equals(java.lang.Object obj)
          Are two bodies equal
 java.lang.String getIdentifier()
          Return the frame identifier
protected  void setupObjectList()
          Setup the Object List.
 java.lang.String toString()
          Because the contents of this frame are an array of bytes and could be large we just return the identifier.
 
Methods inherited from class org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
createStructure, getSize, read, setSize, setSize, write
 
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

identifier

private java.lang.String identifier
Because used by any unknown frame identifier varies

Constructor Detail

FrameBodyUnsupported

public FrameBodyUnsupported()
Deprecated. because no identifier set


FrameBodyUnsupported

public FrameBodyUnsupported(java.lang.String identifier)
Creates a new FrameBodyUnsupported

Parameters:
identifier -

FrameBodyUnsupported

public FrameBodyUnsupported(java.lang.String identifier,
                            byte[] value)
Create a new FrameBodyUnsupported

Parameters:
identifier -
value -

FrameBodyUnsupported

public FrameBodyUnsupported(byte[] value)
Deprecated. because no identifier set

Creates a new FrameBodyUnsupported datatype.

Parameters:
value -

FrameBodyUnsupported

public FrameBodyUnsupported(FrameBodyUnsupported copyObject)
Copy constructor

Parameters:
copyObject - a copy is made of this

FrameBodyUnsupported

public FrameBodyUnsupported(java.nio.ByteBuffer byteBuffer,
                            int frameSize)
                     throws InvalidTagException
Creates a new FrameBodyUnsupported datatype.

Parameters:
byteBuffer -
frameSize -
Throws:
InvalidFrameException - if unable to create framebody from buffer
InvalidTagException
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Return the frame identifier

Specified by:
getIdentifier in class AbstractID3v2FrameBody
Returns:
the identifier

equals

public boolean equals(java.lang.Object obj)
Description copied from class: AbstractID3v2FrameBody
Are two bodies equal

Overrides:
equals in class AbstractID3v2FrameBody
Parameters:
obj -
Returns:
whether obj is equivalent to this object

toString

public java.lang.String toString()
Because the contents of this frame are an array of bytes and could be large we just return the identifier.

Overrides:
toString in class AbstractTagFrameBody
Returns:
a string representation of this frame

setupObjectList

protected void setupObjectList()
Setup the Object List. A byte Array which will be read upto frame size bytes.

Specified by:
setupObjectList in class AbstractTagFrameBody