au.com.prunge.jgenfile.impl.local.spi
Class LocalFileSystemProvider

java.lang.Object
  |
  +--au.com.prunge.jgenfile.spi.FileSystemProvider
        |
        +--au.com.prunge.jgenfile.impl.local.spi.LocalFileSystemProvider

public class LocalFileSystemProvider
extends FileSystemProvider

The provider for the local file system.

Version:
1.0
Author:
Peter Runge

Nested Class Summary
 
Nested classes inherited from class au.com.prunge.jgenfile.spi.FileSystemProvider
FileSystemProvider.Info
 
Constructor Summary
LocalFileSystemProvider()
          Constructs a LocalFileSystemProvider.
 
Method Summary
 au.com.prunge.jgenfile.FileSystem createFileSystem(Map parameterMap)
          Creates a file system from the specified parameters.
 String getName(Locale locale)
          Returns the name of the provider using the specified locale.
 Set getParameterKeys()
          Returns a set of parameter keys that are required for creating a file system with this provider.
 
Methods inherited from class au.com.prunge.jgenfile.spi.FileSystemProvider
getAdditionalInfo, getAllProviders, getDescription, getDescription, getName, getParameterDefaults, getProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFileSystemProvider

public LocalFileSystemProvider()
Constructs a LocalFileSystemProvider.

Method Detail

createFileSystem

public au.com.prunge.jgenfile.FileSystem createFileSystem(Map parameterMap)
                                                   throws FileSystemCreationException,
                                                          IllegalArgumentException
Description copied from class: FileSystemProvider
Creates a file system from the specified parameters. All parameters returned from getParameterKeys() must be present in the map.

Specified by:
createFileSystem in class FileSystemProvider
Parameters:
parameterMap - a map of ParameterKey objects to Object values.
Returns:
the created file system.
Throws:
FileSystemCreationException - if an error occurs creating the file system.
IllegalArgumentException - if one of the parameters in the parameter map is not valid.
See Also:
FileSystemProvider.createFileSystem(java.util.Map)

getName

public String getName(Locale locale)
               throws NullPointerException
Description copied from class: FileSystemProvider
Returns the name of the provider using the specified locale.

Specified by:
getName in class FileSystemProvider
Parameters:
locale - the locale to use.
Returns:
the name of the provider.
Throws:
NullPointerException - if locale is null.
See Also:
FileSystemProvider.getName(java.util.Locale)

getParameterKeys

public Set getParameterKeys()
Description copied from class: FileSystemProvider
Returns a set of parameter keys that are required for creating a file system with this provider.

Specified by:
getParameterKeys in class FileSystemProvider
Returns:
a set of parameter keys.
See Also:
FileSystemProvider.getParameterKeys()