Top Description Methods
org.jboss.modules

public Interface Resource

Known Direct Implementers
org.jboss.modules.URLConnectionResource, org.jboss.modules.PathResource, org.jboss.modules.JarEntryResource
Imports
java.io.IOException, .InputStream, java.net.URL

A single resource from a ResourceLoader.
Author
David M. Lloyd

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name
getName
()

Get the relative resource name.

public long

Returns:

the size, or 0L if unknown
getSize
()

Get the size of the resource, if known.

public URL

Returns:

the URL
getURL
()

Get the complete URL of this resource.

public InputStream

Returns:

the stream
openStream
()

Open an input stream to this resource.

Method Detail

getNameback to summary
public String getName()

Get the relative resource name.

Returns:String

the name

getSizeback to summary
public long getSize()

Get the size of the resource, if known.

Returns:long

the size, or 0L if unknown

getURLback to summary
public URL getURL()

Get the complete URL of this resource.

Returns:URL

the URL

openStreamback to summary
public InputStream openStream() throws IOException

Open an input stream to this resource.

Returns:InputStream

the stream

Exceptions
IOException:
if an I/O error occurs