|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.scan.resources.JarEntryResource
public class JarEntryResource
| Constructor Summary | |
|---|---|
JarEntryResource(JarFile file,
ZipEntry entry)
|
|
| 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 JarEntryResource(JarFile file,
ZipEntry entry)
| Method Detail |
|---|
public String name()
ClasspathResource
name in interface ClasspathResourcepublic String path()
ClasspathResource
path in interface ClasspathResource
public InputStream stream()
throws Exception
ClasspathResource
stream in interface ClasspathResourceException - if the stream cannot be returned
public File file()
throws Exception
ClasspathResource
file in interface ClasspathResourceException - if the file cannot be returnedpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||