|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaudiotagger.tag.mp4.Mp4TagField
public abstract class Mp4TagField
This abstract class represents a link between piece of data, and how it is stored as an mp4 atom
Note there isnt a one to one correspondance between a tag field and a box because some fields are represented by multiple boxes, for example many of the MusicBrainz fields use the '----' box, which in turn uses one of mean, name and data box. So an instance of a tag field maps to one item of data such as 'Title', but it may have to read multiple boxes to do this. There are various subclasses that represent different types of fields
Field Summary | |
---|---|
static java.util.logging.Logger |
logger
|
Method Summary | |
---|---|
abstract Mp4FieldType |
getFieldType()
|
java.lang.String |
getId()
Returns the Id of the represented tag field. This value should uniquely identify a kind of tag data, like title. |
byte[] |
getRawContent()
Convert back to raw content, includes parent and data atom as views as one thing externally |
byte[] |
getRawContentDataOnly()
Get raw content for the data component only |
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 |
isCommon()
Identifies a field to be of common use. Some software may differ between common and not common fields. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jaudiotagger.tag.TagField |
---|
copyContent, isBinary, isEmpty, toString |
Field Detail |
---|
public static java.util.logging.Logger logger
Method Detail |
---|
public java.lang.String getId()
TagField
AbstractTag
will use the "id" to summarize multiple
fields.
getId
in interface TagField
public void isBinary(boolean b)
TagField
isBinary
in interface TagField
b
- true
, if the field contains binary data.public boolean isCommon()
TagField
isCommon
in interface TagField
true
if the field is of common use.public abstract Mp4FieldType getFieldType()
public byte[] getRawContent() throws java.io.UnsupportedEncodingException
getRawContent
in interface TagField
java.io.UnsupportedEncodingException
public byte[] getRawContentDataOnly() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |