org.jboss.classloading.plugins.vfs
Class VFSResourceContext

java.lang.Object
  extended by org.jboss.classloading.plugins.visitor.AbstractResourceContext
      extended by org.jboss.classloading.plugins.vfs.VFSResourceContext
All Implemented Interfaces:
ResourceContext

public class VFSResourceContext
extends AbstractResourceContext

VFS resource context.

Author:
Ales Justin

Constructor Summary
VFSResourceContext(org.jboss.virtual.VirtualFile file, String resourceName, ClassLoader classLoader)
           
 
Method Summary
 InputStream getInputStream()
          Get the input stream for the resource
 URL getUrl()
          Get the url.
 
Methods inherited from class org.jboss.classloading.plugins.visitor.AbstractResourceContext
getBytes, getClassLoader, getClassName, getResourceName, isClass, loadClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFSResourceContext

public VFSResourceContext(org.jboss.virtual.VirtualFile file,
                          String resourceName,
                          ClassLoader classLoader)
Method Detail

getUrl

public URL getUrl()
Description copied from interface: ResourceContext
Get the url.

Returns:
the url.

getInputStream

public InputStream getInputStream()
                           throws IOException
Description copied from class: AbstractResourceContext
Get the input stream for the resource

Specified by:
getInputStream in interface ResourceContext
Overrides:
getInputStream in class AbstractResourceContext
Returns:
the input stream
Throws:
IOException - for any error


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.