public class JarEntryStubResource extends java.lang.Object implements StubResource
JarEntry-based implementation of StubResource.| Constructor and Description |
|---|
JarEntryStubResource(java.util.jar.JarFile file,
java.util.jar.JarEntry entry)
Constructs a
StubResource for the specified entry in the specified JAR file. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns a user-friendly description of the resource (e.g.
|
java.io.InputStream |
getInputStream()
Returns a stream for reading the contents of the resource.
|
public JarEntryStubResource(java.util.jar.JarFile file,
java.util.jar.JarEntry entry)
StubResource for the specified entry in the specified JAR file.file - the JAR fileentry - the JAR entrypublic java.lang.String getDescription()
StubResourcegetDescription in interface StubResourcepublic java.io.InputStream getInputStream()
throws java.io.IOException
StubResourcegetInputStream in interface StubResourcejava.io.IOException