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) |
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, newDirectoryStream, newFileSystem, newFileSystem, newInputStream, onClose, readAttributes, readAttributes, readSymbolicLink, toDelegate, toString
installedProviders
public 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 FilterFileSystemProvider
IOException
public void delete(Path path) throws IOException
delete
in class FilterFileSystemProvider
IOException
public void copy(Path source, Path target, CopyOption... options) throws IOException
copy
in class FilterFileSystemProvider
IOException
public void move(Path source, Path target, CopyOption... options) throws IOException
move
in class FilterFileSystemProvider
IOException
public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException
setAttribute
in class FilterFileSystemProvider
IOException
public OutputStream newOutputStream(Path path, OpenOption... options) throws IOException
newOutputStream
in class FilterFileSystemProvider
IOException
public FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
newFileChannel
in class FilterFileSystemProvider
IOException
public AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) throws IOException
newAsynchronousFileChannel
in class FilterFileSystemProvider
IOException
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
newByteChannel
in class FilterFileSystemProvider
IOException
public void createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) throws IOException
createSymbolicLink
in class FilterFileSystemProvider
IOException
public void createLink(Path link, Path existing) throws IOException
createLink
in class FilterFileSystemProvider
IOException
public boolean deleteIfExists(Path path) throws IOException
deleteIfExists
in class FilterFileSystemProvider
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.