Here you can find the source of loadClassifiers(String dataDirectoryName)
public static Map<String, String[]> loadClassifiers(String dataDirectoryName) throws URISyntaxException
//package com.java2s; import java.io.File; import java.net.URISyntaxException; import java.net.URL; import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, String[]> loadClassifiers(String dataDirectoryName) throws URISyntaxException { Map<String, String[]> classifiers = new HashMap<>(); URL dir_url = ClassLoader.getSystemResource(dataDirectoryName); File dir = new File(dir_url.toURI()); for (String dirName : dir.list()) { File file = new File( ClassLoader.getSystemResource(dataDirectoryName + File.separator + dirName).toURI()); if (file.isDirectory()) { classifiers.put(file.getName(), file.list()); }/*from ww w.ja v a 2 s . co m*/ } return classifiers; } }