public class FilterSecureDirectoryStream<T> extends Object implements SecureDirectoryStream<T>
FilterSecureDirectoryStream
contains another
SecureDirectoryStream
, which it uses as its basic
source of data, possibly transforming the data along the
way or providing additional functionality.DirectoryStream.Filter<T>
Modifier and Type | Field and Description |
---|---|
protected SecureDirectoryStream<T> |
delegate
The underlying
SecureDirectoryStream instance. |
Constructor and Description |
---|
FilterSecureDirectoryStream(SecureDirectoryStream<T> delegate)
Construct a
FilterSecureDirectoryStream based on
the specified base stream. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
deleteDirectory(T path) |
void |
deleteFile(T path) |
<V extends FileAttributeView> |
getFileAttributeView(Class<V> type) |
<V extends FileAttributeView> |
getFileAttributeView(T path,
Class<V> type,
LinkOption... options) |
Iterator<T> |
iterator() |
void |
move(T srcpath,
SecureDirectoryStream<T> targetdir,
T targetpath) |
SeekableByteChannel |
newByteChannel(T path,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs) |
SecureDirectoryStream<T> |
newDirectoryStream(T path,
LinkOption... options) |
protected final SecureDirectoryStream<T> delegate
SecureDirectoryStream
instance.public FilterSecureDirectoryStream(SecureDirectoryStream<T> delegate)
FilterSecureDirectoryStream
based on
the specified base stream.
Note that base stream is closed if this stream is closed.
delegate
- specified base stream.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public SecureDirectoryStream<T> newDirectoryStream(T path, LinkOption... options) throws IOException
newDirectoryStream
in interface SecureDirectoryStream<T>
IOException
public SeekableByteChannel newByteChannel(T path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
newByteChannel
in interface SecureDirectoryStream<T>
IOException
public void deleteFile(T path) throws IOException
deleteFile
in interface SecureDirectoryStream<T>
IOException
public void deleteDirectory(T path) throws IOException
deleteDirectory
in interface SecureDirectoryStream<T>
IOException
public void move(T srcpath, SecureDirectoryStream<T> targetdir, T targetpath) throws IOException
move
in interface SecureDirectoryStream<T>
IOException
public <V extends FileAttributeView> V getFileAttributeView(Class<V> type)
getFileAttributeView
in interface SecureDirectoryStream<T>
public <V extends FileAttributeView> V getFileAttributeView(T path, Class<V> type, LinkOption... options)
getFileAttributeView
in interface SecureDirectoryStream<T>
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.