|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object entagged.audioformats.mp3.util.id3frames.Id3Frame entagged.audioformats.mp3.util.id3frames.GenericId3Frame
public class GenericId3Frame
Field Summary |
---|
Fields inherited from class entagged.audioformats.mp3.util.id3frames.Id3Frame |
---|
flags, version |
Constructor Summary | |
---|---|
GenericId3Frame(String id,
byte[] raw,
byte version)
|
Method Summary | |
---|---|
protected byte[] |
build()
This method creates a binary representation of the current Id3Frame data.This data can directly be written to a file or stream. s |
void |
copyContent(TagField field)
This method copies the data of the given filed to the current data. |
byte[] |
getData()
|
String |
getId()
(overridden) For Id3-Frames its something like "TCOM","TENC","TALB" and so on. |
boolean |
isBinary()
(overridden) |
boolean |
isCommon()
(overridden) |
boolean |
isEmpty()
Determines whether the content of the field is empty. |
protected void |
populate(byte[] raw)
This method reads the given data of an ID3-Frame and interprets it implementation specific. The values of the Id3Frame instance are adjusted. |
String |
toString()
This method returns a human readable description of the fields contents. For text fields it should be the text itself. |
Methods inherited from class entagged.audioformats.mp3.util.id3frames.Id3Frame |
---|
clone, copy, equals, getBytes, getFlags, getIdBytes, getRawContent, getSize, getString, indexOfFirstNull, isBinary |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GenericId3Frame(String id, byte[] raw, byte version) throws UnsupportedEncodingException
UnsupportedEncodingException
Method Detail |
---|
public String getId()
Id3Frame
getId
in interface TagField
getId
in class Id3Frame
TagField.getId()
public boolean isBinary()
Id3Frame
isBinary
in interface TagField
isBinary
in class Id3Frame
true
if field represents binary data (not human
readable).TagField.isBinary()
public byte[] getData()
public boolean isCommon()
Id3Frame
isCommon
in interface TagField
isCommon
in class Id3Frame
true
if the field is of common use.TagField.isCommon()
public void copyContent(TagField field)
TagField
field
- The field containing the data to be taken.public boolean isEmpty()
TagField
true
if no data is stored (or empty String).protected void populate(byte[] raw)
Id3Frame
populate
in class Id3Frame
raw
- The frame data.protected byte[] build()
Id3Frame
Id3Frame
data.
build
in class Id3Frame
public String toString()
TagField
toString
in interface TagField
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |