RootedFileSystem
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private SecureDirectoryStream | |
| public void | deleteDirectory(Path
the path of the directory to delete path)Implements java. Deletes a directory. |
| public void | deleteFile(Path
the path of the file to delete path)Implements java. Deletes a file. |
| protected Path | |
| public <V extends FileAttributeView> V | getFileAttributeView(Class<V>
the type)Class object corresponding to the file attribute viewImplements java. Returns a new file attribute view to access the file attributes of this directory. |
| public <V extends FileAttributeView> V | getFileAttributeView(Path
the path of the file path, Class<V> the type, LinkOption... Class object corresponding to the file attribute viewoptions indicating how symbolic links are handled options)Implements java. Returns a new file attribute view to access the file attributes of a file in this directory. |
| public void | move(Path
the name of the file to move srcpath, SecureDirectoryStream<Path> the destination directory targetdir, Path the name to give the file in the destination directory targetpath)Implements java. Move a file from this directory to another directory. |
| public SeekableByteChannel | newByteChannel(Path
the path of the file to open or create path, Set<? extends OpenOption> options specifying how the file is opened options, FileAttribute<?>... an optional list of attributes to set atomically when creating
the file attrs)Implements java. Opens or creates a file in this directory, returning a seekable byte channel to access the file. |
| public SecureDirectoryStream | newDirectoryStream(Path
the path to the directory to open path, LinkOption... options indicating how symbolic links are handled options)Implements java. Opens the directory identified by the given path, returning a |
| RootedSecureDirectoryStream | back to summary |
|---|---|
| public RootedSecureDirectoryStream(RootedFileSystem rfs, SecureDirectoryStream<Path> delegate) | |
| delegate | back to summary |
|---|---|
| private SecureDirectoryStream | |
| deleteDirectory | back to summary |
|---|---|
| public void deleteDirectory(Path path) throws IOException Implements java. Doc from java. Deletes a directory. Unlike the
| |
| deleteFile | back to summary |
|---|---|
| public void deleteFile(Path path) throws IOException Implements java. Doc from java. Deletes a file. Unlike the
| |
| fixPath | back to summary |
|---|---|
| protected Path fixPath(Path p) | |
| getFileAttributeView | back to summary |
|---|---|
| public <V extends FileAttributeView> V getFileAttributeView(Class<V> type) Implements java. Doc from java. Returns a new file attribute view to access the file attributes of this directory. The resulting file attribute view can be used to read or update the
attributes of this (open) directory. The The state of resulting file attribute view is intimately connected
to this directory stream. Once the directory stream is | |
| getFileAttributeView | back to summary |
|---|---|
| public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) Implements java. Doc from java. Returns a new file attribute view to access the file attributes of a file in this directory. The resulting file attribute view can be used to read or update the
attributes of file in this directory. The The state of resulting file attribute view is intimately connected
to this directory stream. Once the directory stream
| |
| move | back to summary |
|---|---|
| public void move(Path srcpath, SecureDirectoryStream<Path> targetdir, Path targetpath) throws IOException Implements java. Doc from java. Move a file from this directory to another directory. This method works in a similar manner to
| |
| newByteChannel | back to summary |
|---|---|
| public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException Implements java. Doc from java. Opens or creates a file in this directory, returning a seekable byte channel to access the file. This method works in exactly the manner specified by the The channel, once created, is not dependent upon the directory stream used to create it. Closing this directory stream has no effect upon the channel.
| |
| newDirectoryStream | back to summary |
|---|---|
| public SecureDirectoryStream Implements java. Doc from java. Opens the directory identified by the given path, returning a This method works in exactly the manner specified by the The new directory stream, once created, is not dependent upon the directory stream used to create it. Closing this directory stream has no effect upon newly created directory stream.
| |