FileDocCategorySizeDatePackage
ISOScript.javaAPI DocJaudiotagger 2.0.47585Wed Mar 30 16:12:08 BST 2011org.jaudiotagger.tag.reference

ISOScript

public class ISOScript extends Object
Represents the ISO Script

Contains an enum of script, their four letter code and description with additional method to allow an enum to be found by its four letter code or its description.

Fields Summary
private static Map
codeMap
private static Map
descriptionMap
Constructors Summary
Methods Summary
public static java.lang.String[]getDescriptionsAsArray()

        List<String> descriptions = new ArrayList<String>();
        for(Script script:Script.values())
        {
            descriptions.add(script.description);
        }
        return descriptions.toArray(new String[0]);
    
public static org.jaudiotagger.tag.reference.ISOScript$ScriptgetScriptByCode(java.lang.String code)

param
code
return
enum with this two letter code

        codeMap = new HashMap<String, Script>();
        for (Script script : Script.values())
        {
            codeMap.put(script.code, script);
        }

        descriptionMap = new HashMap<String, Script>();
        for (Script script : Script.values())
        {
            descriptionMap.put(script.description, script);
        }

    
        return codeMap.get(code);
    
public static org.jaudiotagger.tag.reference.ISOScript$ScriptgetScriptByDescription(java.lang.String description)

param
description
return
enum with this description

        return descriptionMap.get(description);