public class VerboseFS extends FilterFileSystemProvider
delegate, fileSystem, scheme| Constructor and Description |
|---|
VerboseFS(java.nio.file.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(java.nio.file.Path source,
java.nio.file.Path target,
java.nio.file.CopyOption... options) |
void |
createDirectory(java.nio.file.Path dir,
java.nio.file.attribute.FileAttribute<?>... attrs) |
void |
createLink(java.nio.file.Path link,
java.nio.file.Path existing) |
void |
createSymbolicLink(java.nio.file.Path link,
java.nio.file.Path target,
java.nio.file.attribute.FileAttribute<?>... attrs) |
void |
delete(java.nio.file.Path path) |
boolean |
deleteIfExists(java.nio.file.Path path) |
void |
move(java.nio.file.Path source,
java.nio.file.Path target,
java.nio.file.CopyOption... options) |
java.nio.channels.AsynchronousFileChannel |
newAsynchronousFileChannel(java.nio.file.Path path,
java.util.Set<? extends java.nio.file.OpenOption> options,
java.util.concurrent.ExecutorService executor,
java.nio.file.attribute.FileAttribute<?>... attrs) |
java.nio.channels.SeekableByteChannel |
newByteChannel(java.nio.file.Path path,
java.util.Set<? extends java.nio.file.OpenOption> options,
java.nio.file.attribute.FileAttribute<?>... attrs) |
java.nio.channels.FileChannel |
newFileChannel(java.nio.file.Path path,
java.util.Set<? extends java.nio.file.OpenOption> options,
java.nio.file.attribute.FileAttribute<?>... attrs) |
java.io.OutputStream |
newOutputStream(java.nio.file.Path path,
java.nio.file.OpenOption... options) |
void |
setAttribute(java.nio.file.Path path,
java.lang.String attribute,
java.lang.Object value,
java.nio.file.LinkOption... options) |
checkAccess, getFileAttributeView, getFileStore, getFileSystem, getPath, getScheme, isHidden, isSameFile, newDirectoryStream, newFileSystem, newFileSystem, newInputStream, onClose, readAttributes, readAttributes, readSymbolicLink, toDelegate, toStringpublic VerboseFS(java.nio.file.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(java.nio.file.Path dir,
java.nio.file.attribute.FileAttribute<?>... attrs)
throws java.io.IOException
createDirectory in class FilterFileSystemProviderjava.io.IOExceptionpublic void delete(java.nio.file.Path path)
throws java.io.IOException
delete in class FilterFileSystemProviderjava.io.IOExceptionpublic void copy(java.nio.file.Path source,
java.nio.file.Path target,
java.nio.file.CopyOption... options)
throws java.io.IOException
copy in class FilterFileSystemProviderjava.io.IOExceptionpublic void move(java.nio.file.Path source,
java.nio.file.Path target,
java.nio.file.CopyOption... options)
throws java.io.IOException
move in class FilterFileSystemProviderjava.io.IOExceptionpublic void setAttribute(java.nio.file.Path path,
java.lang.String attribute,
java.lang.Object value,
java.nio.file.LinkOption... options)
throws java.io.IOException
setAttribute in class FilterFileSystemProviderjava.io.IOExceptionpublic java.io.OutputStream newOutputStream(java.nio.file.Path path,
java.nio.file.OpenOption... options)
throws java.io.IOException
newOutputStream in class FilterFileSystemProviderjava.io.IOExceptionpublic java.nio.channels.FileChannel newFileChannel(java.nio.file.Path path,
java.util.Set<? extends java.nio.file.OpenOption> options,
java.nio.file.attribute.FileAttribute<?>... attrs)
throws java.io.IOException
newFileChannel in class FilterFileSystemProviderjava.io.IOExceptionpublic java.nio.channels.AsynchronousFileChannel newAsynchronousFileChannel(java.nio.file.Path path,
java.util.Set<? extends java.nio.file.OpenOption> options,
java.util.concurrent.ExecutorService executor,
java.nio.file.attribute.FileAttribute<?>... attrs)
throws java.io.IOException
newAsynchronousFileChannel in class FilterFileSystemProviderjava.io.IOExceptionpublic java.nio.channels.SeekableByteChannel newByteChannel(java.nio.file.Path path,
java.util.Set<? extends java.nio.file.OpenOption> options,
java.nio.file.attribute.FileAttribute<?>... attrs)
throws java.io.IOException
newByteChannel in class FilterFileSystemProviderjava.io.IOExceptionpublic void createSymbolicLink(java.nio.file.Path link,
java.nio.file.Path target,
java.nio.file.attribute.FileAttribute<?>... attrs)
throws java.io.IOException
createSymbolicLink in class FilterFileSystemProviderjava.io.IOExceptionpublic void createLink(java.nio.file.Path link,
java.nio.file.Path existing)
throws java.io.IOException
createLink in class FilterFileSystemProviderjava.io.IOExceptionpublic boolean deleteIfExists(java.nio.file.Path path)
throws java.io.IOException
deleteIfExists in class FilterFileSystemProviderjava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.