Top Fields Constructors Methods
org.jboss.modules

pack-priv final Class URLConnectionResource

extends Object
implements Resource
Class Inheritance
All Implemented Interfaces
org.jboss.modules.Resource
Imports
java.io.IOException, .InputStream, java.net.URL, .URLConnection

Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private final URLConnection

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
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

connectionback to summary
private final URLConnection connection

Constructor Detail

URLConnectionResourceback to summary
pack-priv URLConnectionResource(final URL url) throws IOException
URLConnectionResourceback to summary
pack-priv URLConnectionResource(final URLConnection connection)

Method Detail

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