Java ClassLoader Load getFileFromPool(String path)

Here you can find the source of getFileFromPool(String path)

Description

get File From Pool

License

Open Source License

Declaration

public static InputStream getFileFromPool(String path) 

Method Source Code

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

import java.io.InputStream;

import java.net.URLClassLoader;

public class Main {
    private static final URLClassLoader loader = (URLClassLoader) ClassLoader.getSystemClassLoader();

    public static InputStream getFileFromPool(String path) {
        return loader.getResourceAsStream(path);
    }/* www . ja va  2  s  .co  m*/
}

Related

  1. getFile(final String name)
  2. getFile(Object obj, String filename)
  3. getFileContents(String filename)
  4. getFileContents(String path)
  5. getFileFromPath(Object obj, String fileName)
  6. getFileFullPath(String file)
  7. getFilesInPackage(String packageName)
  8. getFullPathByPkg(String pkg)
  9. getImageFilename(String name)