|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jaudiotagger.audio.generic.AbstractTag
org.jaudiotagger.tag.mp4.Mp4Tag
public class Mp4Tag
A Logical representation of Mp4Tag, i.e the meta information stored in an Mp4 file underneath the moov.udt.meta.ilst atom.
| Field Summary | |
|---|---|
private static java.util.EnumMap<FieldKey,Mp4FieldKey> |
tagFieldToMp4Field
|
| Fields inherited from class org.jaudiotagger.audio.generic.AbstractTag |
|---|
commonNumber, fields |
| Constructor Summary | |
|---|---|
Mp4Tag()
|
|
| Method Summary | |
|---|---|
TagField |
createArtworkField(byte[] data)
Create artwork field |
TagField |
createField(Artwork artwork)
Create artwork field |
TagField |
createField(FieldKey genericKey,
java.lang.String value)
Create Tag Field using generic key This should use the correct subclass for the key |
TagField |
createField(Mp4FieldKey mp4FieldKey,
java.lang.String value)
Create Tag Field using mp4 key Uses the correct subclass for the key |
private TagField |
createGenreField(java.lang.String content)
Create genre field |
void |
deleteField(FieldKey genericKey)
Delete fields with this generic key |
void |
deleteField(Mp4FieldKey mp4Key)
Delete fields with this mp4key |
java.util.List<TagField> |
get(Mp4FieldKey mp4FieldKey)
Retrieve the values that exists for this mp4keyId (this is the internalid actually used) |
java.util.List<Artwork> |
getArtworkList()
|
java.util.List<TagField> |
getFields(FieldKey genericKey)
Maps the generic key to the mp4 key and return the list of values for this field |
java.lang.String |
getFirst(Mp4FieldKey mp4Key)
Retrieve the first value that exists for this mp4key |
Mp4TagField |
getFirstField(FieldKey genericKey)
|
Mp4TagField |
getFirstField(Mp4FieldKey mp4Key)
|
java.lang.String |
getValue(FieldKey genericKey,
int index)
Retrieve the indexed value that exists for this generic key |
protected boolean |
isAllowedEncoding(java.lang.String enc)
Determines whether the given charset encoding may be used for the represented tagging system. |
void |
setField(TagField field)
Set field, special handling for track and disc because they hold two fields |
java.lang.String |
toString()
(overridden) |
| Methods inherited from class org.jaudiotagger.audio.generic.AbstractTag |
|---|
addField, addField, addField, deleteArtworkField, deleteField, getFieldCount, getFieldCountIncludingSubValues, getFields, getFields, getFirst, getFirst, getFirstArtwork, getFirstField, getItem, getSubValue, hasCommonFields, hasField, isEmpty, setEncoding, setField, setField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.EnumMap<FieldKey,Mp4FieldKey> tagFieldToMp4Field
| Constructor Detail |
|---|
public Mp4Tag()
| Method Detail |
|---|
private TagField createGenreField(java.lang.String content)
If the content can be parsed to one of the known values use the genre field otherwise use the custom field.
content -
protected boolean isAllowedEncoding(java.lang.String enc)
AbstractTag
isAllowedEncoding in class AbstractTagenc - charset encoding.
true if the given encoding can be used.public java.lang.String toString()
AbstractTag
toString in interface TagtoString in class AbstractTagObject.toString()
public java.util.List<TagField> getFields(FieldKey genericKey)
throws KeyNotFoundException
getFields in interface TaggetFields in class AbstractTaggenericKey -
TagField objects with the given "id".
KeyNotFoundException
public java.util.List<TagField> get(Mp4FieldKey mp4FieldKey)
throws KeyNotFoundException
mp4FieldKey -
KeyNotFoundException
public java.lang.String getValue(FieldKey genericKey,
int index)
throws KeyNotFoundException
genericKey -
KeyNotFoundException
public java.lang.String getFirst(Mp4FieldKey mp4Key)
throws KeyNotFoundException
mp4Key -
KeyNotFoundException
public Mp4TagField getFirstField(FieldKey genericKey)
throws KeyNotFoundException
getFirstField in interface TaggetFirstField in class AbstractTagKeyNotFoundException
public Mp4TagField getFirstField(Mp4FieldKey mp4Key)
throws KeyNotFoundException
KeyNotFoundException
public void deleteField(FieldKey genericKey)
throws KeyNotFoundException
deleteField in interface TagdeleteField in class AbstractTaggenericKey -
KeyNotFoundException
public void deleteField(Mp4FieldKey mp4Key)
throws KeyNotFoundException
mp4Key -
KeyNotFoundExceptionpublic TagField createArtworkField(byte[] data)
data - raw image data
FieldDataInvalidException
public TagField createField(Artwork artwork)
throws FieldDataInvalidException
FieldDataInvalidException
public TagField createField(FieldKey genericKey,
java.lang.String value)
throws KeyNotFoundException,
FieldDataInvalidException
createField in interface TagcreateField in class AbstractTaggenericKey - value -
KeyNotFoundException
FieldDataInvalidExceptionpublic void setField(TagField field)
setField in interface TagsetField in class AbstractTagfield - Tag.setField(org.jaudiotagger.tag.TagField)
public TagField createField(Mp4FieldKey mp4FieldKey,
java.lang.String value)
throws KeyNotFoundException,
FieldDataInvalidException
mp4FieldKey - value -
KeyNotFoundException
FieldDataInvalidExceptionpublic java.util.List<Artwork> getArtworkList()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||