@ThreadSafe public final class TFileSystem extends java.nio.file.FileSystem
FileSystem implementation based on the TrueZIP Kernel module.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Commits all pending changes for this (federated) file system and all its
federated child file systems to their respective parent file system,
closes their associated target (archive) file in order to allow access
by third parties (e.g. other processes), cleans up any temporary
allocated resources (e.g. temporary files) and purges any cached
data.
|
Iterable<java.nio.file.FileStore> |
getFileStores() |
TPath |
getPath(String first,
String... more)
Constructs a new path from the given sub path strings.
|
java.nio.file.PathMatcher |
getPathMatcher(String syntaxAndPattern) |
Iterable<java.nio.file.Path> |
getRootDirectories() |
String |
getSeparator()
Returns
File.separator. |
java.nio.file.attribute.UserPrincipalLookupService |
getUserPrincipalLookupService() |
static boolean |
isLenient()
Equivalent to
TConfig.get().isLenient(). |
boolean |
isOpen()
Returns
true. |
boolean |
isReadOnly()
Returns
false. |
java.nio.file.WatchService |
newWatchService() |
TFileSystemProvider |
provider() |
static void |
setLenient(boolean lenient)
Equivalent to
TConfig.get().setLenient(lenient). |
Set<String> |
supportedFileAttributeViews() |
void |
sync(BitField<FsSyncOption> options)
Commits all pending changes for this (federated) file system and all its
federated child file systems to their respective parent file system with
respect to the given options.
|
public void close()
throws FsSyncException
Calling this method is equivalent to
sync(FsSyncOptions.UMOUNT).
close in interface Closeableclose in interface AutoCloseableclose in class java.nio.file.FileSystemFsSyncWarningException - if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if an unclosed archive entry
stream gets forcibly closed.FsSyncException - if any error conditions apply.
This implies some loss of data!sync(BitField)public Iterable<java.nio.file.FileStore> getFileStores()
getFileStores in class java.nio.file.FileSystemUnsupportedOperationException - alwayspublic TPath getPath(String first, String... more)
This method scans the path name resulting
from the segment parameters to detect prospective archive files using
the default archive detector.
The supported path name separators are "File.separator" and
"/".
Any leading and trailing separators in the resulting path name get
discarded.
getPath in class java.nio.file.FileSystemfirst - the first sub path string.more - optional sub path strings.public java.nio.file.PathMatcher getPathMatcher(String syntaxAndPattern)
getPathMatcher in class java.nio.file.FileSystemUnsupportedOperationException - alwayspublic Iterable<java.nio.file.Path> getRootDirectories()
getRootDirectories in class java.nio.file.FileSystempublic String getSeparator()
File.separator.getSeparator in class java.nio.file.FileSystemFile.separator.public java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService in class java.nio.file.FileSystemUnsupportedOperationException - alwayspublic static boolean isLenient()
TConfig.get().isLenient().public boolean isOpen()
true.isOpen in class java.nio.file.FileSystemtrue.public boolean isReadOnly()
false.isReadOnly in class java.nio.file.FileSystemfalse.public java.nio.file.WatchService newWatchService() throws IOException
newWatchService in class java.nio.file.FileSystemUnsupportedOperationException - alwaysIOExceptionpublic TFileSystemProvider provider()
provider in class java.nio.file.FileSystempublic static void setLenient(boolean lenient)
TConfig.get().setLenient(lenient).public Set<String> supportedFileAttributeViews()
supportedFileAttributeViews in class java.nio.file.FileSystempublic void sync(BitField<FsSyncOption> options) throws FsSyncException
options - a bit field of options for the synchronization operation.IllegalArgumentException - if the combination of synchronization
options is illegal, e.g. if
FsSyncOption.FORCE_CLOSE_INPUT is cleared and
FsSyncOption.FORCE_CLOSE_OUTPUT is set or if
FsSyncOption.ABORT_CHANGES is set.FsSyncWarningException - if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if
FsSyncOption.FORCE_CLOSE_INPUT or
FsSyncOption.FORCE_CLOSE_OUTPUT is set and an unclosed
archive entry stream gets forcibly closed.FsSyncException - if any error conditions apply.
This implies some loss of data!Copyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.