public class LanguageList extends Chunk
chunkLength, guid, position
Constructor and Description |
---|
LanguageList()
Creates a new instance.
|
LanguageList(long pos,
BigInteger size)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addLanguage(String language)
This method adds a language.
|
String |
getLanguage(int index)
Returns the language code at the specified index.
|
int |
getLanguageCount()
Returns the amount of stored language codes.
|
List<String> |
getLanguages()
Returns all language codes in list.
|
String |
prettyPrint(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.
|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString
public LanguageList()
public LanguageList(long pos, BigInteger size)
pos
- position within the ASF file.size
- size of the chunkpublic void addLanguage(String language)
language
- language codepublic String getLanguage(int index)
index
- the index of the language code to get.public int getLanguageCount()
public List<String> getLanguages()
public String prettyPrint(String prefix)
prettyPrint
in class Chunk
prefix
- each line gets this string prepended.public void removeLanguage(int index)
index
- index of language to remove.Copyright © 2005–2020 jthink.net. All rights reserved.