|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
createDiscNoField(java.lang.String content)
Create discno 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 |
private TagField |
createGenreField(java.lang.String content)
Create genre field |
TagField |
createTagField(Mp4FieldKey mp4FieldKey,
java.lang.String value)
Create Tag Field using mp4 key Uses the correct subclass for the key |
void |
deleteField(FieldKey genericKey)
Delete fields with this generic key |
void |
deleteTagField(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(FieldKey genericKey)
Retrieve the first value that exists for this generic key |
java.lang.String |
getFirst(Mp4FieldKey mp4Key)
Retrieve the first value that exists for this mp4key |
Mp4TagField |
getFirstField(FieldKey genericKey)
|
Mp4TagField |
getFirstField(Mp4FieldKey mp4Key)
|
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, get, getFieldCount, getFields, getFirst, getFirstArtwork, getFirstField, 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 AbstractTag
enc
- charset encoding.
true
if the given encoding can be used.public java.lang.String toString()
AbstractTag
toString
in interface Tag
toString
in class AbstractTag
Object.toString()
public java.util.List<TagField> getFields(FieldKey genericKey) throws KeyNotFoundException
getFields
in interface Tag
getFields
in class AbstractTag
genericKey
-
TagField
objects with the given "id".
KeyNotFoundException
public java.util.List<TagField> get(Mp4FieldKey mp4FieldKey) throws KeyNotFoundException
mp4FieldKey
-
KeyNotFoundException
public java.lang.String getFirst(FieldKey genericKey) throws KeyNotFoundException
getFirst
in interface Tag
getFirst
in class AbstractTag
genericKey
-
KeyNotFoundException
public java.lang.String getFirst(Mp4FieldKey mp4Key) throws KeyNotFoundException
mp4Key
-
KeyNotFoundException
public Mp4TagField getFirstField(FieldKey genericKey) throws KeyNotFoundException
getFirstField
in interface Tag
getFirstField
in class AbstractTag
KeyNotFoundException
public Mp4TagField getFirstField(Mp4FieldKey mp4Key) throws KeyNotFoundException
KeyNotFoundException
public void deleteField(FieldKey genericKey) throws KeyNotFoundException
deleteField
in interface Tag
deleteField
in class AbstractTag
genericKey
-
KeyNotFoundException
public void deleteTagField(Mp4FieldKey mp4Key) throws KeyNotFoundException
mp4Key
-
KeyNotFoundException
public TagField createDiscNoField(java.lang.String content) throws FieldDataInvalidException
content
- can be any of the following
1
1/10
FieldDataInvalidException
public 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 Tag
createField
in class AbstractTag
genericKey
- value
-
KeyNotFoundException
FieldDataInvalidException
public void setField(TagField field)
setField
in interface Tag
setField
in class AbstractTag
field
- Tag.setField(org.jaudiotagger.tag.TagField)
public TagField createTagField(Mp4FieldKey mp4FieldKey, java.lang.String value) throws KeyNotFoundException, FieldDataInvalidException
mp4FieldKey
- value
-
KeyNotFoundException
FieldDataInvalidException
public java.util.List<Artwork> getArtworkList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |