|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.util.ResourceLoader
public final class ResourceLoader
Field Summary | |
---|---|
static int |
TIMEOUT
|
Method Summary | |
---|---|
static java.io.InputStream |
loadResourceAsStream(java.lang.String name)
Method to find a file, first by finding it as a file (either by the absolute or relative path), then as a URL, and then finally seeing if it is on the classpath. |
static java.io.InputStream |
loadResourceAsStream(java.lang.String name,
java.lang.ClassLoader loader)
Uses the ClassLoader passed in to attempt to load the resource if it's not a File or a URL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TIMEOUT
Method Detail |
---|
public static java.io.InputStream loadResourceAsStream(java.lang.String name) throws RuleSetNotFoundException
name
- String
RuleSetNotFoundException
public static java.io.InputStream loadResourceAsStream(java.lang.String name, java.lang.ClassLoader loader) throws RuleSetNotFoundException
name
- Stringloader
- ClassLoader
RuleSetNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |