public class JarEntryResource extends Object implements ClasspathResource
| Constructor and Description |
|---|
JarEntryResource(JarFile file,
ZipEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public String name()
ClasspathResourcename in interface ClasspathResourcepublic String path()
ClasspathResourcepath in interface ClasspathResourcepublic InputStream stream() throws Exception
ClasspathResourcestream in interface ClasspathResourceException - if the stream cannot be returnedpublic File file() throws Exception
ClasspathResourcefile in interface ClasspathResourceException - if the file cannot be returnedCopyright © 2017. All Rights Reserved.