public class VerboseFS extends FilterFileSystemProvider
delegate, fileSystem, scheme| Constructor and Description |
|---|
VerboseFS(FileSystem delegate,
InfoStream infoStream)
Create a new instance, recording major filesystem write activities
(create, delete, etc) to the specified
InfoStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(Path source,
Path target,
CopyOption... options) |
void |
createDirectory(Path dir,
FileAttribute<?>... attrs) |
void |
createLink(Path link,
Path existing) |
void |
createSymbolicLink(Path link,
Path target,
FileAttribute<?>... attrs) |
void |
delete(Path path) |
boolean |
deleteIfExists(Path path) |
void |
move(Path source,
Path target,
CopyOption... options) |
AsynchronousFileChannel |
newAsynchronousFileChannel(Path path,
Set<? extends OpenOption> options,
ExecutorService executor,
FileAttribute<?>... attrs) |
SeekableByteChannel |
newByteChannel(Path path,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs) |
DirectoryStream<Path> |
newDirectoryStream(Path dir,
DirectoryStream.Filter<? super Path> filter) |
FileChannel |
newFileChannel(Path path,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs) |
OutputStream |
newOutputStream(Path path,
OpenOption... options) |
void |
setAttribute(Path path,
String attribute,
Object value,
LinkOption... options) |
checkAccess, getFileAttributeView, getFileStore, getFileSystem, getPath, getScheme, isHidden, isSameFile, newFileSystem, newFileSystem, newInputStream, onClose, readAttributes, readAttributes, readSymbolicLink, toStringinstalledProviderspublic VerboseFS(FileSystem delegate, InfoStream infoStream)
InfoStream.delegate - delegate filesystem to wrap.infoStream - infoStream to send messages to. The component for
messages is named "FS".public void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
createDirectory in class FilterFileSystemProviderIOExceptionpublic void delete(Path path) throws IOException
delete in class FilterFileSystemProviderIOExceptionpublic void copy(Path source, Path target, CopyOption... options) throws IOException
copy in class FilterFileSystemProviderIOExceptionpublic void move(Path source, Path target, CopyOption... options) throws IOException
move in class FilterFileSystemProviderIOExceptionpublic void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException
setAttribute in class FilterFileSystemProviderIOExceptionpublic OutputStream newOutputStream(Path path, OpenOption... options) throws IOException
newOutputStream in class FilterFileSystemProviderIOExceptionpublic FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
newFileChannel in class FilterFileSystemProviderIOExceptionpublic AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) throws IOException
newAsynchronousFileChannel in class FilterFileSystemProviderIOExceptionpublic SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
newByteChannel in class FilterFileSystemProviderIOExceptionpublic void createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) throws IOException
createSymbolicLink in class FilterFileSystemProviderIOExceptionpublic void createLink(Path link, Path existing) throws IOException
createLink in class FilterFileSystemProviderIOExceptionpublic boolean deleteIfExists(Path path) throws IOException
deleteIfExists in class FilterFileSystemProviderIOExceptionpublic DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException
newDirectoryStream in class FilterFileSystemProviderIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.