org.millscript.commons.vfs.protocols.file
Class FileSchemeHandler

java.lang.Object
  extended by org.millscript.commons.vfs.protocols.AbstractURISchemeHandler
      extended by org.millscript.commons.vfs.protocols.file.FileSchemeHandler
All Implemented Interfaces:
URISchemeHandler

public class FileSchemeHandler
extends AbstractURISchemeHandler

This class provides the file URI scheme handler.


Constructor Summary
FileSchemeHandler(VFS v)
          Constructs a new file scheme handler for the specified VFS.
 
Method Summary
 VFile resolveAsFile(java.net.URI uri)
          Resolves the specified URI to a virtual file in a new virtual filesystem.
 VFolder resolveAsFolder(java.net.URI uri)
          Resolves the specified URI to a virtual fole in a new virtual filesystem.
 VVolume resolveAsVolume(java.net.URI uri)
          Resolves the specified URI to a new virtual filesystem volume.
 
Methods inherited from class org.millscript.commons.vfs.protocols.AbstractURISchemeHandler
getParentVFS, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSchemeHandler

public FileSchemeHandler(VFS v)
Constructs a new file scheme handler for the specified VFS.

Parameters:
v - the VFS for this handler
Method Detail

resolveAsFile

public VFile resolveAsFile(java.net.URI uri)
Description copied from interface: URISchemeHandler
Resolves the specified URI to a virtual file in a new virtual filesystem. The returned virtual file will belong to a virtual volume and possibly some virtual folders as well. The virtual volume will be located at the root of the URI's path.

Parameters:
uri - the URI of the file to get a virtual file for
Returns:
a VFile for the specified file URI
See Also:
URISchemeHandler.resolveAsFile(java.net.URI)

resolveAsFolder

public VFolder resolveAsFolder(java.net.URI uri)
Description copied from interface: URISchemeHandler
Resolves the specified URI to a virtual fole in a new virtual filesystem. The returned virtual fiolder will belong to a virtual volume and possibly some virtual folders as well. The virtual volume will be located at the root of the URI's path.

Parameters:
uri - the URI of the folder to get a virtual folder for
Returns:
a VFile for the specified folder URI
See Also:
URISchemeHandler.resolveAsFolder(java.net.URI)

resolveAsVolume

public VVolume resolveAsVolume(java.net.URI uri)
Description copied from interface: URISchemeHandler
Resolves the specified URI to a new virtual filesystem volume. The root of the virtual volume will be the specified URI's path.

Parameters:
uri - the URI of the file to get a virtual file for
Returns:
a VFile for the specified file URI
See Also:
URISchemeHandler.resolveAsVolume(java.net.URI)


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.