Java Resource Load getResource(Class c, String path)

Here you can find the source of getResource(Class c, String path)

Description

get Resource

License

Open Source License

Declaration

public static InputStream getResource(Class c, String path) 

Method Source Code

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

import java.io.InputStream;

public class Main {
    public static InputStream getResource(Class c, String path) {
        return c.getResourceAsStream(path);
    }/*from   w  w  w . java2  s.  co m*/
}

Related

  1. getFilesRecurse(File dir, final String pattern)
  2. getFilesRecursevely(final String sourceFolder, final String classRegEx)
  3. getResource(Class c, String name)
  4. getResource(Class c, String name)
  5. getResource(Class clazz, String fileName)
  6. getResource(Class clazz, String name, String charset)
  7. getResource(Class c, String name)
  8. getResource(ClassLoader classLoader, final String path)