public class ResourceInfo extends Object
| Constructor and Description |
|---|
ResourceInfo(String path,
boolean classpathResource) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPath()
The path to the resource.
|
boolean |
isClasspathResource()
Is it a resource on the classpath or on the
file system?
|
public ResourceInfo(String path, boolean classpathResource)
public String getPath()
If isClasspathResource() is true,
this should be a classpath path (starting with a "/" or not, this
makes no difference). Otherwise it must be
the absolute path to the resource on the file system.
public boolean isClasspathResource()
Copyright © 2019. All rights reserved.