|
||||||||||
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.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 String value of the first tagfield that exists for this generic key |
TagField |
getFirstField(FieldKey genericKey)
|
protected boolean |
isAllowedEncoding(java.lang.String enc)
(overridden) |
Methods inherited from class org.jaudiotagger.audio.generic.AbstractTag |
---|
addField, addField, addField, deleteArtworkField, deleteField, get, getFieldCount, getFields, getFields, getFirst, getFirstArtwork, getFirstField, 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 AbstractTag
enc
- 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
Tag
Only textual data supported at the moment. The genericKey will be mapped to the correct implementation key and return a TagField.
It is not recommended to use this method for normal use of the audiolibrary, this is snot added to the structure
createField
in interface Tag
createField
in class AbstractTag
genericKey
- is the generic keyvalue
- to store
KeyNotFoundException
FieldDataInvalidException
public java.lang.String getFirst(FieldKey genericKey) throws KeyNotFoundException
Tag
getFirst
in interface Tag
getFirst
in class AbstractTag
genericKey
-
KeyNotFoundException
public void deleteField(FieldKey genericKey) throws KeyNotFoundException
Tag
deleteField
in interface Tag
deleteField
in class AbstractTag
genericKey
-
KeyNotFoundException
public TagField getFirstField(FieldKey genericKey) throws KeyNotFoundException
getFirstField
in interface Tag
getFirstField
in class AbstractTag
genericKey
-
KeyNotFoundException
public 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 |