@ThreadSafe public final class TFileSystemProvider extends java.nio.file.spi.FileSystemProvider
FileSystemProvider implementation
based on the TrueZIP Kernel module.| Modifier and Type | Class and Description |
|---|---|
static interface |
TFileSystemProvider.Parameter
Keys for environment maps.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ROOT_MOUNT_POINT
The root mount point of the provider for the public no-arg constructor.
|
static String |
DEFAULT_SCHEME
The scheme of the provider for the public no-arg constructor.
|
createLink, createSymbolicLink, deleteIfExists, installedProviders, newAsynchronousFileChannel, newFileChannel, readSymbolicLinkpublic static final String DEFAULT_ROOT_MOUNT_POINT
public static final String DEFAULT_SCHEME
public void checkAccess(java.nio.file.Path path, java.nio.file.AccessMode... modes) throws IOException
checkAccess in class java.nio.file.spi.FileSystemProviderIOExceptionpublic void copy(java.nio.file.Path source, java.nio.file.Path target, java.nio.file.CopyOption... options) throws IOException
copy in class java.nio.file.spi.FileSystemProviderIOExceptionpublic void createDirectory(java.nio.file.Path dir, java.nio.file.attribute.FileAttribute<?>... attrs) throws IOException
createDirectory in class java.nio.file.spi.FileSystemProviderIOExceptionpublic void delete(java.nio.file.Path path) throws IOException
delete in class java.nio.file.spi.FileSystemProviderIOException@Nullable public <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView(java.nio.file.Path path, Class<V> type, java.nio.file.LinkOption... options)
getFileAttributeView in class java.nio.file.spi.FileSystemProviderpublic java.nio.file.FileStore getFileStore(java.nio.file.Path path) throws IOException
getFileStore in class java.nio.file.spi.FileSystemProviderUnsupportedOperationException - alwaysIOExceptionpublic TFileSystem getFileSystem(URI uri)
TPath
uri.
The uri is scanned for prospective archive files using the
current configuration.
Any trailing separators in uri get discarded.
If one or more prospective archive files are found, the file system for
the innermost prospective archive file is returned.
Otherwise, the file system for the innermost directory is returned.
getFileSystem in class java.nio.file.spi.FileSystemProvideruri - the TPath uri to return a file system for.IllegalArgumentException - if the given uri is opaque.public TPath getPath(URI name)
TPath for the given hierarchical name.
The URI path component is scanned for prospective archive files using
the current configuration.
Any trailing separators in name get discarded.
getPath in class java.nio.file.spi.FileSystemProvidername - the uri to return a TPath for.TPathIllegalArgumentException - if the given uri is opaque.public FsPath getRoot()
public String getScheme()
getScheme in class java.nio.file.spi.FileSystemProviderpublic boolean isHidden(java.nio.file.Path path) throws IOException
isHidden in class java.nio.file.spi.FileSystemProviderIOExceptionpublic boolean isSameFile(java.nio.file.Path a, java.nio.file.Path b) throws IOException
isSameFile in class java.nio.file.spi.FileSystemProviderIOExceptionpublic void move(java.nio.file.Path source, java.nio.file.Path target, java.nio.file.CopyOption... options) throws IOException
move in class java.nio.file.spi.FileSystemProviderIOExceptionpublic SeekableByteChannel newByteChannel(java.nio.file.Path path, Set<? extends java.nio.file.OpenOption> options, java.nio.file.attribute.FileAttribute<?>... attrs) throws IOException
newByteChannel in class java.nio.file.spi.FileSystemProviderIOExceptionpublic java.nio.file.DirectoryStream<java.nio.file.Path> newDirectoryStream(java.nio.file.Path dir, java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter) throws IOException
newDirectoryStream in class java.nio.file.spi.FileSystemProviderIOExceptionpublic TFileSystem newFileSystem(java.nio.file.Path path, Map<String,?> configuration)
path for prospective archive files using the
given configuration and returns the file system for the
innermost prospective archive file or throws an
UnsupportedOperationException if no prospective archive file is
detected.
First, the configuration TFileSystemProvider.Parameters get enumerated.
If no value is set for a parameter key, the respective value of the
current configuration gets used.
Next, the path is scanned for prospective archive files using
the configuration resulting from the first step.
If one or more prospective archive files are found, the file system for
the innermost prospective archive file is returned.
Otherwise, an UnsupportedOperationException is thrown.
newFileSystem in class java.nio.file.spi.FileSystemProviderpath - the path to scan for prospective archive files.configuration - may contain a TArchiveDetector for the key
TFileSystemProvider.Parameter.ARCHIVE_DETECTOR.UnsupportedOperationException - if no prospective archive file has
been detected according to the configuration resulting from
merging the given configuration with the
current configuration.public TFileSystem newFileSystem(URI uri, Map<String,?> configuration)
TPath
uri.
First, the configuration TFileSystemProvider.Parameters get enumerated.
If no value is set for a parameter key, the respective value of the
current configuration gets used.
Next, the uri is scanned for prospective archive files using
the configuration resulting from the first step.
Any trailing separators in uri get discarded.
If one or more prospective archive files are found, the file system for
the innermost prospective archive file is returned.
Otherwise, the file system for the innermost directory is returned.
newFileSystem in class java.nio.file.spi.FileSystemProvideruri - the TPath uri to return a file system for.configuration - may contain a TArchiveDetector for the key
TFileSystemProvider.Parameter.ARCHIVE_DETECTOR.IllegalArgumentException - if the given uri is opaque.public InputStream newInputStream(java.nio.file.Path path, java.nio.file.OpenOption... options) throws IOException
newInputStream in class java.nio.file.spi.FileSystemProviderIOExceptionpublic OutputStream newOutputStream(java.nio.file.Path path, java.nio.file.OpenOption... options) throws IOException
newOutputStream in class java.nio.file.spi.FileSystemProviderIOExceptionpublic <A extends java.nio.file.attribute.BasicFileAttributes> A readAttributes(java.nio.file.Path path, Class<A> type, java.nio.file.LinkOption... options) throws IOException
readAttributes in class java.nio.file.spi.FileSystemProviderIOExceptionpublic Map<String,Object> readAttributes(java.nio.file.Path path, String attributes, java.nio.file.LinkOption... options) throws IOException
readAttributes in class java.nio.file.spi.FileSystemProviderUnsupportedOperationException - alwaysIOExceptionpublic void setAttribute(java.nio.file.Path path, String attribute, Object value, java.nio.file.LinkOption... options) throws IOException
setAttribute in class java.nio.file.spi.FileSystemProviderUnsupportedOperationException - alwaysIOExceptionCopyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.