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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalFileSystemProvider
public LocalFileSystemProvider()
- Constructs a
LocalFileSystemProvider
.
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()