Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.virtual.plugins.context
Class AbstractURIHandler

    java.lang.Object
      org.jboss.virtual.plugins.context.AbstractVirtualFileHandler
          org.jboss.virtual.plugins.context.AbstractURIHandler

All Implemented Interfaces:
  java.io.Serializable, VirtualFileHandler

    public abstract class AbstractURIHandler

extends AbstractVirtualFileHandler
implements java.io.Serializable

URIHandler stub.

Version:
  $Revision: 1.1 $
Author:
  Adrian Brock
See Also:
  Serialized Form

Field Summary

Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler
`cachedLastModified, log, vfsUrl`

Constructor Summary
`AbstractURIHandler(VFSContext context, VirtualFileHandler parent, java.net.URI uri, java.lang.String name)` Create a newURLHandler.

Method Summary
`long` | `getLastModified()` When the file was last modified
`long` | `getSize()` Get the size
`java.net.URI` | `getURI()` Get the uri
`boolean` | `isHidden()` Whether it is hidden
`java.io.InputStream` | `openStream()` Access the file contents.
`java.net.URI` | `toURI()` Get the VF URI (file://root/org/jboss/X.java)

Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler
`close, decrement, doClose, equals, getName, getParent, getPathName, getVFSContext, getVirtualFile, hasBeenModified, hashCode, checkClosed, increment, setPathName, simpleFindChild, structuredFindChild, toString, toURL, toVfsUrl`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Methods inherited from interface org.jboss.virtual.spi.VirtualFileHandler
`exists, findChild, getChildren, isLeaf`

Constructor Detail

### AbstractURIHandler

    public AbstractURIHandler(VFSContext context,
                              VirtualFileHandler parent,
                              java.net.URI uri,
                              java.lang.String name)

  Create a newURLHandler.

  Parameters:
    `context` - the context
    `parent` - the parent
    `uri` - the uri
    `name` - the name
  Throws:
    `java.lang.IllegalArgumentException` - for a null context, vfsPath or url

Method Detail

### getURI

    public java.net.URI getURI()

  Get the uri

  Returns:
    the uri

### getLastModified

    public long getLastModified()
                         throws java.io.IOException

  Description copied from interface: `VirtualFileHandler`
  When the file was last modified

  Specified by:
    `getLastModified` in interface `VirtualFileHandler`
  Returns:
    the last modified time
  Throws:
    `java.io.IOException` - for any problem accessing the virtual file system

### getSize

    public long getSize()
                 throws java.io.IOException

  Description copied from interface: `VirtualFileHandler`
  Get the size

  Specified by:
    `getSize` in interface `VirtualFileHandler`
  Returns:
    the size
  Throws:
    `java.io.IOException` - for any problem accessing the virtual file system

### isHidden

    public boolean isHidden()
                     throws java.io.IOException

  Description copied from interface: `VirtualFileHandler`
  Whether it is hidden

  Specified by:
    `isHidden` in interface `VirtualFileHandler`
  Returns:
    true if hidden.
  Throws:
    `java.io.IOException` - for any problem accessing the virtual file system

### openStream

    public java.io.InputStream openStream()
                                   throws java.io.IOException

  Description copied from interface: `VirtualFileHandler`
  Access the file contents.

  Specified by:
    `openStream` in interface `VirtualFileHandler`
  Returns:
    An InputStream for the file contents.
  Throws:
    `java.io.IOException` - for any problem accessing the virtual file system

### toURI

    public java.net.URI toURI()

  Description copied from interface: `VirtualFileHandler`
  Get the VF URI (file://root/org/jboss/X.java)

  Specified by:
    `toURI` in interface `VirtualFileHandler`
  Returns:
    the full URI to the VF in the VFS.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD