|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaudiotagger.audio.asf.data.Chunk org.jaudiotagger.audio.asf.data.LanguageList
public class LanguageList
This structure represents the data of the ASF language object.
The language list is simply a listing of language codes which should comply
to RFC-1766.
Consider: the index of a language is used by other entries in the ASF
metadata.
Field Summary | |
---|---|
private java.util.List<java.lang.String> |
languages
List of language codes, complying RFC-1766 |
Fields inherited from class org.jaudiotagger.audio.asf.data.Chunk |
---|
chunkLength, guid, position |
Constructor Summary | |
---|---|
LanguageList()
Creates a new instance. |
|
LanguageList(long pos,
java.math.BigInteger size)
Creates an instance. |
Method Summary | |
---|---|
void |
addLanguage(java.lang.String language)
This method adds a language. |
java.lang.String |
getLanguage(int index)
Returns the language code at the specified index. |
int |
getLanguageCount()
Returns the amount of stored language codes. |
java.util.List<java.lang.String> |
getLanguages()
Returns all language codes in list. |
java.lang.String |
prettyPrint(java.lang.String prefix)
This method creates a String containing useful information prepared to be printed on STD-OUT. |
void |
removeLanguage(int index)
Removes the language entry at specified index. |
Methods inherited from class org.jaudiotagger.audio.asf.data.Chunk |
---|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.util.List<java.lang.String> languages
Constructor Detail |
---|
public LanguageList()
public LanguageList(long pos, java.math.BigInteger size)
pos
- position within the ASF file.size
- size of the chunkMethod Detail |
---|
public void addLanguage(java.lang.String language)
language
- language codepublic java.lang.String getLanguage(int index)
index
- the index of the language code to get.
public int getLanguageCount()
public java.util.List<java.lang.String> getLanguages()
public java.lang.String prettyPrint(java.lang.String prefix)
prettyPrint
in class Chunk
prefix
- each line gets this string prepended.
public void removeLanguage(int index)
index
- index of language to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |