public abstract class GenericTag extends AbstractTag
AbstractTag
and it currenlty used to provide basic support to audio formats with only read tagging
ability such as Real or Wav files Modifier and Type | Class and Description |
---|---|
private class |
GenericTag.GenericTagTextField
Implementations of
TagTextField for use with
"ISO-8859-1" strings. |
Modifier and Type | Field and Description |
---|---|
private static java.util.EnumSet<FieldKey> |
supportedKeys |
commonNumber, fields
Constructor and Description |
---|
GenericTag() |
Modifier and Type | Method and Description |
---|---|
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<java.lang.String> |
getAll(FieldKey genericKey)
Retrieve all String values that exist for this generic key
|
java.util.List<Artwork> |
getArtworkList() |
java.util.List<TagField> |
getFields(FieldKey genericKey)
|
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)
|
addField, addField, addField, deleteArtworkField, deleteField, getAll, getFieldCount, getFieldCountIncludingSubValues, getFields, getFields, getFirst, getFirstArtwork, getFirstField, getItem, hasCommonFields, hasField, hasField, isEmpty, setEncoding, setField, setField, setField, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createCompilationField
private static java.util.EnumSet<FieldKey> supportedKeys
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.
createField
in interface Tag
createField
in class AbstractTag
genericKey
- is the generic keyvalue
- to storeKeyNotFoundException
FieldDataInvalidException
public java.lang.String getFirst(FieldKey genericKey) throws KeyNotFoundException
AbstractTag
getFirst
in interface Tag
getFirst
in class AbstractTag
genericKey
- KeyNotFoundException
public java.lang.String getValue(FieldKey genericKey, int index) throws KeyNotFoundException
Tag
KeyNotFoundException
public java.util.List<TagField> getFields(FieldKey genericKey) throws KeyNotFoundException
Tag
genericKey
- The field id.KeyNotFoundException
public java.util.List<java.lang.String> getAll(FieldKey genericKey) throws KeyNotFoundException
Tag
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
Copyright © 2005-2013 java.net. All Rights Reserved.