|
|||||||||
| 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.audio.generic.GenericTag
public abstract class GenericTag
This is a complete example implementation of
AbstractTag and it currenlty used to provide basic support to audio formats with only read tagging
ability such as Real or Wav files
| Nested Class Summary | |
|---|---|
private class |
GenericTag.GenericTagTextField
Implementations of TagTextField for use with
"ISO-8859-1" strings. |
| Field Summary | |
|---|---|
private static java.util.EnumSet<FieldKey> |
supportedKeys
|
| Fields inherited from class org.jaudiotagger.audio.generic.AbstractTag |
|---|
commonNumber, fields |
| Constructor Summary | |
|---|---|
GenericTag()
|
|
| Method Summary | |
|---|---|
TagField |
createField(Artwork artwork)
Create artwork field based on the data in artwork |
TagField |
createField(FieldKey genericKey,
java.lang.String value)
Create a new field based on generic key, used internally by the library |
void |
deleteField(FieldKey genericKey)
Delete any fields with this key |
java.util.List<Artwork> |
getArtworkList()
|
java.lang.String |
getFirst(FieldKey genericKey)
Retrieve the first value that exists for this generic key |
TagField |
getFirstField(FieldKey genericKey)
|
java.lang.String |
getValue(FieldKey genericKey,
int index)
Retrieve String value of the nth tag field that exists for this generic key |
protected boolean |
isAllowedEncoding(java.lang.String enc)
(overridden) |
| Methods inherited from class org.jaudiotagger.audio.generic.AbstractTag |
|---|
addField, addField, addField, deleteArtworkField, deleteField, getFieldCount, getFieldCountIncludingSubValues, getFields, getFields, getFields, getFirst, getFirstArtwork, getFirstField, getItem, getSubValue, hasCommonFields, hasField, isEmpty, setEncoding, setField, setField, setField, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static java.util.EnumSet<FieldKey> supportedKeys
| Constructor Detail |
|---|
public GenericTag()
| Method Detail |
|---|
protected boolean isAllowedEncoding(java.lang.String enc)
isAllowedEncoding in class AbstractTagenc - charset encoding.
true if the given encoding can be used.AbstractTag.isAllowedEncoding(java.lang.String)
public TagField createField(FieldKey genericKey,
java.lang.String value)
throws KeyNotFoundException,
FieldDataInvalidException
TagOnly textual data supported at the moment. The genericKey will be mapped to the correct implementation key and return a TagField.
createField in interface TagcreateField in class AbstractTaggenericKey - is the generic keyvalue - to store
KeyNotFoundException
FieldDataInvalidException
public java.lang.String getFirst(FieldKey genericKey)
throws KeyNotFoundException
AbstractTag
getFirst in interface TaggetFirst in class AbstractTaggenericKey -
KeyNotFoundException
public java.lang.String getValue(FieldKey genericKey,
int index)
throws KeyNotFoundException
Tag
KeyNotFoundException
public void deleteField(FieldKey genericKey)
throws KeyNotFoundException
Tag
deleteField in interface TagdeleteField in class AbstractTaggenericKey -
KeyNotFoundException
public TagField getFirstField(FieldKey genericKey)
throws KeyNotFoundException
getFirstField in interface TaggetFirstField in class AbstractTaggenericKey -
KeyNotFoundExceptionpublic java.util.List<Artwork> getArtworkList()
public TagField createField(Artwork artwork)
throws FieldDataInvalidException
Tag
FieldDataInvalidException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||