Package org.jboss.modules
Class JarEntryResource
- java.lang.Object
-
- org.jboss.modules.JarEntryResource
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.jar.JarEntryentryprivate java.lang.StringentryNameprivate java.util.jar.JarFilejarFileprivate java.net.URLresourceURL
-
Constructor Summary
Constructors Constructor Description JarEntryResource(java.util.jar.JarFile jarFile, java.util.jar.JarEntry entry, java.lang.String relativePath, java.net.URL resourceURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Get the relative resource name.longgetSize()Get the size of the resource, if known.java.net.URLgetURL()Get the complete URL of this resource.java.io.InputStreamopenStream()Open an input stream to this resource.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ResourceGet the relative resource name.
-
getURL
public java.net.URL getURL()
Description copied from interface:ResourceGet the complete URL of this resource.
-
openStream
public java.io.InputStream openStream() throws java.io.IOExceptionDescription copied from interface:ResourceOpen an input stream to this resource.- Specified by:
openStreamin interfaceResource- Returns:
- the stream
- Throws:
java.io.IOException- if an I/O error occurs
-
-