|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tffenterprises.music.tag.id3v2.Frame
com.tffenterprises.music.tag.id3v2.frame.BaseFrame
com.tffenterprises.music.tag.id3v2.frame.GenericFrame
public class GenericFrame
This class is the generic ID3v2 frame type; it just takes the raw data from an ID3v2 tag and stores it as a byte array.
Field Summary | |
---|---|
private byte[] |
frameData
The data contained in this frame. |
Constructor Summary | |
---|---|
protected |
GenericFrame()
Constructs a new GenericFrame with no data, and no valid frame type. |
|
GenericFrame(FrameHeader header)
Constructs a new GenericFrame with the given header. |
|
GenericFrame(FrameHeader header,
byte[] frameData)
Constructs a new GenericFrame with the specified header and data. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this ID3v2 frame. |
boolean |
equals(java.lang.Object other)
Compares this ID3v2 frame with another object. |
protected byte[] |
getBytes()
Get the frameData byte array. |
byte[] |
getRawData()
Returns the raw data corresponding to this frame. |
boolean |
isOfRepeatableType()
Returns true if it is legal for multiple frames of this type to exist in the same ID3v2 tag, false otherwise. |
void |
setRawData(byte[] rawData)
Sets the raw data corresponding to this frame. |
java.lang.String |
toString()
Returns a String representation of this frame. |
Methods inherited from class com.tffenterprises.music.tag.id3v2.frame.BaseFrame |
---|
getChecksum, getFormatFlags, getFrameID, getHeader, getStatusFlags, hashCode, isChanged, setChanged, setFormatFlags, setStatusFlags, toByteArray, updateChecksum, writeTo |
Methods inherited from class com.tffenterprises.music.tag.id3v2.Frame |
---|
FromByteArray, FromByteArray, FromInputStream, GetFrameClassForID, getNewInstance, getNewInstance, getNewInstance, MinimumLength, RegisterFrameClass, UnregisterFrameClass |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private byte[] frameData
Constructor Detail |
---|
protected GenericFrame()
public GenericFrame(FrameHeader header)
header
- The FrameHeader instance to be used for this frame.public GenericFrame(FrameHeader header, byte[] frameData) throws java.lang.IllegalArgumentException
header
- The FrameHeader instance to be used for this frame.frameData
- The frame data.
java.lang.IllegalArgumentException
- if the specified frame data is null.Method Detail |
---|
public java.lang.Object clone()
clone
in class BaseFrame
public boolean equals(java.lang.Object other)
equals
in class BaseFrame
other
- The other object.
public byte[] getRawData()
getRawData
in class BaseFrame
public void setRawData(byte[] rawData) throws java.lang.IllegalArgumentException
setRawData
in class BaseFrame
rawData
- The raw data.
java.lang.IllegalArgumentException
- if the specified raw data is null.public java.lang.String toString()
toString
in class BaseFrame
public boolean isOfRepeatableType()
isOfRepeatableType
in class BaseFrame
protected byte[] getBytes()
frameData
byte array. To be used by subclasses
only.
getBytes
in class BaseFrame
frameData
byte array.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |