|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaudiotagger.tag.id3.AbstractTagItem
org.jaudiotagger.tag.id3.AbstractTagFrame
org.jaudiotagger.tag.id3.AbstractID3v2Frame
public abstract class AbstractID3v2Frame
This abstract class is each frame header inside a ID3v2 tag.
Field Summary |
---|
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
---|
logger |
Constructor Summary | |
---|---|
AbstractID3v2Frame(AbstractID3v2Frame frame)
Create a frame based on another frame |
|
AbstractID3v2Frame(AbstractID3v2FrameBody body)
Create a frame based on a body |
|
AbstractID3v2Frame(java.lang.String identifier)
Create a new frame with empty body based on identifier |
Method Summary | |
---|---|
void |
copyContent(TagField field)
This method copies the data of the given field to the current data. |
void |
createStructure()
Return String Representation of frame |
java.lang.String |
getId()
Return the frame identifier, this only identifiies the frame it does not provide a unique key, when using frames such as TXXX which are used by many fields * |
java.lang.String |
getIdentifier()
Return the frame identifier |
byte[] |
getRawContent()
This method delivers the binary representation of the fields data in order to be directly written to the file. |
void |
isBinary(boolean b)
This method will set the field to represent binary data. Some implementations may support conversions. As of now (Octobre 2005) there is no implementation really using this method to perform useful operations. |
boolean |
isEmpty()
Determines whether the content of the field is empty. |
abstract void |
write(java.io.ByteArrayOutputStream tagBuffer)
|
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagFrame |
---|
equals, getBody, isSubsetOf, setBody |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
---|
getSize, read |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jaudiotagger.tag.TagField |
---|
isBinary, isCommon, toString |
Constructor Detail |
---|
public AbstractID3v2Frame(AbstractID3v2Frame frame)
public AbstractID3v2Frame(AbstractID3v2FrameBody body)
public AbstractID3v2Frame(java.lang.String identifier)
Method Detail |
---|
public java.lang.String getId()
getId
in interface TagField
public java.lang.String getIdentifier()
getIdentifier
in class AbstractTagItem
public void copyContent(TagField field)
TagField
copyContent
in interface TagField
field
- The field containing the data to be taken.public byte[] getRawContent()
TagField
getRawContent
in interface TagField
public abstract void write(java.io.ByteArrayOutputStream tagBuffer)
public void isBinary(boolean b)
TagField
isBinary
in interface TagField
b
- public boolean isEmpty()
TagField
isEmpty
in interface TagField
true
if no data is stored (or empty String).public void createStructure()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |