Java Resource Load getResourceList(File fdir, String extn)

Here you can find the source of getResourceList(File fdir, String extn)

Description

get Resource List

License

Open Source License

Declaration

public static String[] getResourceList(File fdir, String extn) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

import java.util.ArrayList;

public class Main {
    public static String[] getResourceList(File fdir, String extn) {
        ArrayList<String> als = new ArrayList<String>();
        for (File f : fdir.listFiles()) {
            String fnm = f.getName();
            if (fnm.endsWith(extn)) {
                als.add(fnm.substring(0, fnm.length())); //  - extn.length()));
            }// w w w.  j a v  a  2s . co m
        }
        return als.toArray(new String[als.size()]);
    }
}

Related

  1. getResourceFile(String relativeResourceFilePathname)
  2. getResourceFile(String resource)
  3. getResourceFile(String resourceName)
  4. getResourceFromJar(File fromFile, String insideFile)
  5. getResourceInDirPackage(String packageName, String packagePath, final boolean recursive, List classes)
  6. getResourceListing(URL pathUrl, String prefix, String suffix)
  7. getResourceNameFromFileName(final String pFileName)
  8. getResourceNames(File dir)
  9. getResourceNames(String resName)