|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.scan.resources.FileResource
public class FileResource
A ClasspathResource that lives in a directory archive.
| Constructor Summary | |
|---|---|
FileResource(String absolutePath,
String relativePath)
Creates an instance from its absolute path on the file system, and from the its path relative to archive that contains it. |
|
| Method Summary | |
|---|---|
File |
file()
Returns the resource as a file |
String |
name()
Returns the name of the resource. |
String |
path()
Returns the path of the resource, relatively to the containing archive. |
InputStream |
stream()
Returns the resource as a stream. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileResource(String absolutePath,
String relativePath)
absolutePath - the absolute pathrelativePath - the relative path| Method Detail |
|---|
public String name()
ClasspathResource
name in interface ClasspathResourcepublic String path()
ClasspathResource
path in interface ClasspathResourcepublic InputStream stream()
ClasspathResource
stream in interface ClasspathResourcepublic File file()
ClasspathResource
file in interface ClasspathResourcepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||