@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class TFileSystemProvider extends java.nio.file.spi.FileSystemProvider
| Modifier and Type | Class and Description |
|---|---|
private static class |
TFileSystemProvider.FsEntryAttributes |
private static class |
TFileSystemProvider.FsEntryAttributeView |
static interface |
TFileSystemProvider.Parameter
Keys for environment maps.
|
| Modifier and Type | Field and Description |
|---|---|
private static TFileSystemProvider |
DEFAULT |
private FsMountPoint |
root |
private String |
scheme |
| Modifier | Constructor and Description |
|---|---|
|
TFileSystemProvider()
Deprecated.
This constructor is solely provided in order to use this
file system provider class with the service loading feature
of NIO.2.
|
private |
TFileSystemProvider(String scheme,
FsMountPoint root) |
createLink, createSymbolicLink, deleteIfExists, installedProviders, newAsynchronousFileChannel, newFileChannel, readSymbolicLinkprivate static volatile TFileSystemProvider DEFAULT
private final String scheme
private final FsMountPoint root
@Deprecated public TFileSystemProvider()
get(TPath)private TFileSystemProvider(String scheme, FsMountPoint root)
public static TFileSystemProvider get(TPath path)
path - a path.public String getScheme()
getScheme in class java.nio.file.spi.FileSystemProviderpublic FsMountPoint getRoot()
private static TArchiveDetector getArchiveDetector(@CheckForNull Map<String,?> env)
public TFileSystem newFileSystem(java.nio.file.Path path, Map<String,?> env)
newFileSystem in class java.nio.file.spi.FileSystemProviderenv - If null or does not contain a TArchiveDetector
for the key TFileSystemProvider.Parameter.ARCHIVE_DETECTOR, then
TPath.getDefaultArchiveDetector() is used to detect prospective
archive files.public TFileSystem newFileSystem(URI uri, @CheckForNull Map<String,?> env)
newFileSystem in class java.nio.file.spi.FileSystemProviderenv - If null or does not contain a TArchiveDetector
for the key TFileSystemProvider.Parameter.ARCHIVE_DETECTOR, then
TPath.getDefaultArchiveDetector() is used to detect prospective
archive files.public TFileSystem getFileSystem(URI uri)
newFileSystem(uri, null).
Note that TFileSystem objects are transient - they solely exist to
please the NIO.2 API.getFileSystem in class java.nio.file.spi.FileSystemProviderpublic TPath getPath(URI uri)
getPath in class java.nio.file.spi.FileSystemProviderprivate static BitField<FsInputOption> mapInput(java.nio.file.OpenOption... options)
private static BitField<FsInputOption> mapInput(Set<? extends java.nio.file.OpenOption> options)
private static BitField<FsOutputOption> mapOutput(java.nio.file.OpenOption... options)
private static BitField<FsOutputOption> mapOutput(Set<? extends java.nio.file.OpenOption> options)
public 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 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 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 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.FileSystemProviderIOExceptionprivate void delete0(TPath path) throws IOException
IOExceptionpublic 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.FileSystemProviderIOExceptionprivate void copy0(TPath source, TPath target, java.nio.file.CopyOption... options) throws IOException
IOExceptionpublic 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.FileSystemProviderIOExceptionprivate static void checkContains(TPath a, TPath b) throws IOException
IOExceptionpublic boolean isSameFile(java.nio.file.Path a, java.nio.file.Path b) throws IOException
isSameFile in class java.nio.file.spi.FileSystemProviderIOExceptionpublic boolean isHidden(java.nio.file.Path path) throws IOException
isHidden in class java.nio.file.spi.FileSystemProviderIOExceptionpublic java.nio.file.FileStore getFileStore(java.nio.file.Path path) throws IOException
getFileStore in class java.nio.file.spi.FileSystemProviderIOExceptionpublic void checkAccess(java.nio.file.Path path, java.nio.file.AccessMode... modes) throws IOException
checkAccess in class java.nio.file.spi.FileSystemProviderIOExceptionpublic <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 <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.FileSystemProviderIOExceptionpublic 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.FileSystemProviderIOExceptionCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.