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, toString
public 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 FilterFileSystemProvider
java.io.IOException
public void delete(java.nio.file.Path path) throws java.io.IOException
delete
in class FilterFileSystemProvider
java.io.IOException
public void copy(java.nio.file.Path source, java.nio.file.Path target, java.nio.file.CopyOption... options) throws java.io.IOException
copy
in class FilterFileSystemProvider
java.io.IOException
public void move(java.nio.file.Path source, java.nio.file.Path target, java.nio.file.CopyOption... options) throws java.io.IOException
move
in class FilterFileSystemProvider
java.io.IOException
public 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 FilterFileSystemProvider
java.io.IOException
public java.io.OutputStream newOutputStream(java.nio.file.Path path, java.nio.file.OpenOption... options) throws java.io.IOException
newOutputStream
in class FilterFileSystemProvider
java.io.IOException
public 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 FilterFileSystemProvider
java.io.IOException
public 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 FilterFileSystemProvider
java.io.IOException
public 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 FilterFileSystemProvider
java.io.IOException
public 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 FilterFileSystemProvider
java.io.IOException
public void createLink(java.nio.file.Path link, java.nio.file.Path existing) throws java.io.IOException
createLink
in class FilterFileSystemProvider
java.io.IOException
public boolean deleteIfExists(java.nio.file.Path path) throws java.io.IOException
deleteIfExists
in class FilterFileSystemProvider
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.