Top Fields Constructors Methods
org.jboss.modules

pack-priv final Class JarEntryResource

extends Object
implements Resource
Class Inheritance
All Implemented Interfaces
org.jboss.modules.Resource
Imports
java.io.IOException, .InputStream, java.net.URL, java.util.jar.JarFile, java.util.zip.ZipEntry

Authors
David M. Lloyd, Richard Opalka

Field Summary

Modifier and TypeField and Description
private final String
private final JarFile
private final String
private final URL

Constructor Summary

AccessConstructor and Description
pack-priv
JarEntryResource(final JarFile jarFile, final String name, final String relativePath, final URL resourceURL)

Method Summary

Modifier and TypeMethod and Description
private ZipEntry
public String
getName()

Implements org.jboss.modules.Resource.getName.

Get the relative resource name.
public long
getSize()

Implements org.jboss.modules.Resource.getSize.

Get the size of the resource, if known.
public URL
getURL()

Implements org.jboss.modules.Resource.getURL.

Get the complete URL of this resource.
public InputStream
openStream()

Implements org.jboss.modules.Resource.openStream.

Open an input stream to this resource.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entryNameback to summary
private final String entryName
jarFileback to summary
private final JarFile jarFile
relativePathback to summary
private final String relativePath
resourceURLback to summary
private final URL resourceURL

Constructor Detail

JarEntryResourceback to summary
pack-priv JarEntryResource(final JarFile jarFile, final String name, final String relativePath, final URL resourceURL)

Method Detail

getEntryback to summary
private ZipEntry getEntry()
getNameback to summary
public String getName()

Implements org.jboss.modules.Resource.getName.

Doc from org.jboss.modules.Resource.getName.

Get the relative resource name.

Returns:String

the name

getSizeback to summary
public long getSize()

Implements org.jboss.modules.Resource.getSize.

Doc from org.jboss.modules.Resource.getSize.

Get the size of the resource, if known.

Returns:long

the size, or 0L if unknown

getURLback to summary
public URL getURL()

Implements org.jboss.modules.Resource.getURL.

Doc from org.jboss.modules.Resource.getURL.

Get the complete URL of this resource.

Returns:URL

the URL

openStreamback to summary
public InputStream openStream() throws IOException

Implements org.jboss.modules.Resource.openStream.

Doc from org.jboss.modules.Resource.openStream.

Open an input stream to this resource.

Returns:InputStream

the stream

Exceptions
IOException:
if an I/O error occurs