public static List<Dictionary> listDicts(String path) {
        Libvoikko lib = getLib();
        Pointer cDicts = lib.voikko_list_dicts(s2n(path));
        Pointer[] pointerArray = cDicts.getPointerArray(0);
        List<Dictionary> dicts = new ArrayList<Dictionary>(pointerArray.length);
        for (Pointer cDict : pointerArray) {
            dicts.add(new Dictionary(lib.voikko_dict_language(cDict).toString(),
                    lib.voikko_dict_script(cDict).toString(),
                    lib.voikko_dict_variant(cDict).toString(), lib.voikko_dict_description(cDict).toString()));
        }
        lib.voikko_free_dicts(cDicts);
        return dicts;
    }
public static List < Dictionary > listDicts ( String path ) { Libvoikko lib = getLib ( ) ; Pointer cDicts = lib . voikko_list_dicts ( s2n ( path ) ) ; Pointer [ ] pointerArray = cDicts . getPointerArray ( 0 ) ; List < Dictionary > dicts = new ArrayList < Dictionary > ( pointerArray . length ) ; for ( Pointer cDict : pointerArray ) { dicts . add ( new Dictionary ( lib . voikko_dict_language ( cDict ) . toString ( ) , lib . voikko_dict_script ( cDict ) . toString ( ) , lib . voikko_dict_variant ( cDict ) . toString ( ) , lib . voikko_dict_description ( cDict ) . toString ( ) ) ) ; } lib . voikko_free_dicts ( cDicts ) ; return dicts ; }
@param path
@return a list of Dictionary objects representing the available
dictionary variants within given directory and standard search path.