void |
FileSystemView.checkAccess(JimfsPath path) |
Checks access to the file at the given path for the given modes.
|
private void |
FileSystemView.checkMovable(File file,
JimfsPath path) |
|
int |
PathService.compare(JimfsPath a,
JimfsPath b) |
|
void |
FileSystemView.copy(JimfsPath source,
FileSystemView destView,
JimfsPath dest,
java.util.Set<java.nio.file.CopyOption> options,
boolean move) |
Copies or moves the file at the given source path to the given dest path.
|
static SymbolicLink |
SymbolicLink.create(int id,
java.nio.file.attribute.FileTime creationTime,
JimfsPath target) |
Creates a new symbolic link with the given ID and target.
|
Directory |
FileSystemView.createDirectory(JimfsPath path,
java.nio.file.attribute.FileAttribute<?>... attrs) |
Creates a new directory at the given path.
|
private File |
FileSystemView.createFile(JimfsPath path,
com.google.common.base.Supplier<? extends File> fileCreator,
boolean failIfExists,
java.nio.file.attribute.FileAttribute<?>... attrs) |
Creates a new file at the given path if possible, using the given supplier to create the file.
|
(package private) SymbolicLink |
FileFactory.createSymbolicLink(JimfsPath target) |
Creates a new symbolic link referencing the given target path.
|
SymbolicLink |
FileSystemView.createSymbolicLink(JimfsPath path,
JimfsPath target,
java.nio.file.attribute.FileAttribute<?>... attrs) |
Creates a new symbolic link at the given path with the given target.
|
private void |
FileSystemView.delete(DirectoryEntry entry,
FileSystemView.DeleteMode deleteMode,
JimfsPath pathForException) |
Deletes the given directory entry from its parent directory.
|
void |
FileSystemView.deleteFile(JimfsPath path,
FileSystemView.DeleteMode deleteMode) |
Deletes the file at the given absolute path.
|
private static FileSystemView |
JimfsFileSystemProvider.getDefaultView(JimfsPath path) |
Returns the default file system view for the given path.
|
<V extends java.nio.file.attribute.FileAttributeView> @Nullable V |
FileSystemView.getFileAttributeView(JimfsPath path,
java.lang.Class<V> type,
java.util.Set<? super java.nio.file.LinkOption> options) |
Returns a file attribute view for the given path in this view.
|
RegularFile |
FileSystemView.getOrCreateRegularFile(JimfsPath path,
java.util.Set<java.nio.file.OpenOption> options,
java.nio.file.attribute.FileAttribute<?>... attrs) |
Gets the regular file at the given path, creating it if it doesn't exist and the given options
specify that it should be created.
|
private RegularFile |
FileSystemView.getOrCreateRegularFileWithWriteLock(JimfsPath path,
java.util.Set<java.nio.file.OpenOption> options,
java.nio.file.attribute.FileAttribute<?>[] attrs) |
Gets or creates a new regular file with a write lock (assuming the file does not exist).
|
int |
PathService.hash(JimfsPath path) |
Creates a hash code for the given path.
|
boolean |
FileSystemView.isSameFile(JimfsPath path,
FileSystemView view2,
JimfsPath path2) |
Returns whether or not the two given paths locate the same file.
|
void |
FileSystemView.link(JimfsPath link,
FileSystemView existingView,
JimfsPath existing) |
Creates a hard link at the given link path to the regular file at the given path.
|
private DirectoryEntry |
FileSystemView.lookUp(JimfsPath path,
java.util.Set<? super java.nio.file.LinkOption> options) |
Looks up the file at the given path without locking.
|
DirectoryEntry |
FileTree.lookUp(File workingDirectory,
JimfsPath path,
java.util.Set<? super java.nio.file.LinkOption> options) |
Returns the result of the file lookup for the given path.
|
private @Nullable DirectoryEntry |
FileTree.lookUp(File dir,
JimfsPath path,
java.util.Set<? super java.nio.file.LinkOption> options,
int linkDepth) |
|
(package private) DirectoryEntry |
JimfsFileStore.lookUp(File workingDirectory,
JimfsPath path,
java.util.Set<? super java.nio.file.LinkOption> options) |
Looks up the file at the given path using the given link options.
|
private @Nullable RegularFile |
FileSystemView.lookUpRegularFile(JimfsPath path,
java.util.Set<java.nio.file.OpenOption> options) |
Looks up the regular file at the given path, throwing an exception if the file isn't a regular
file.
|
(package private) DirectoryEntry |
FileSystemView.lookUpWithLock(JimfsPath path,
java.util.Set<? super java.nio.file.LinkOption> options) |
Attempt to look up the file at the given path.
|
java.nio.file.DirectoryStream<java.nio.file.Path> |
FileSystemView.newDirectoryStream(JimfsPath dir,
java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter,
java.util.Set<? super java.nio.file.LinkOption> options,
JimfsPath basePathForStream) |
Creates a new directory stream for the directory located by the given path.
|
private JimfsFileChannel |
JimfsFileSystemProvider.newJimfsFileChannel(JimfsPath path,
java.util.Set<? extends java.nio.file.OpenOption> options,
java.nio.file.attribute.FileAttribute<?>... attrs) |
|
<A extends java.nio.file.attribute.BasicFileAttributes> A |
FileSystemView.readAttributes(JimfsPath path,
java.lang.Class<A> type,
java.util.Set<? super java.nio.file.LinkOption> options) |
Reads attributes of the file located by the given path in this view as an object.
|
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> |
FileSystemView.readAttributes(JimfsPath path,
java.lang.String attributes,
java.util.Set<? super java.nio.file.LinkOption> options) |
Reads attributes of the file located by the given path in this view as a map.
|
JimfsPath |
FileSystemView.readSymbolicLink(JimfsPath path) |
Returns the target of the symbolic link at the given path.
|
void |
FileSystemView.setAttribute(JimfsPath path,
java.lang.String attribute,
java.lang.Object value,
java.util.Set<? super java.nio.file.LinkOption> options) |
Sets the given attribute to the given value on the file located by the given path in this view.
|
com.google.common.collect.ImmutableMap<Name,java.nio.file.attribute.FileTime> |
FileSystemView.snapshotModifiedTimes(JimfsPath path) |
Returns a snapshot mapping the names of each file in the directory at the given path to the
last modified time of that file.
|
com.google.common.base.Supplier<SymbolicLink> |
FileFactory.symbolicLinkCreator(JimfsPath target) |
Returns a supplier that creates a symbolic links to the given path.
|
(package private) com.google.common.base.Supplier<SymbolicLink> |
JimfsFileStore.symbolicLinkCreator(JimfsPath target) |
Returns a supplier that creates a new symbolic link with the given target.
|
private PollingWatchService.Snapshot |
PollingWatchService.takeSnapshot(JimfsPath path) |
|
JimfsPath |
FileSystemView.toRealPath(JimfsPath path,
PathService pathService,
java.util.Set<? super java.nio.file.LinkOption> options) |
Gets the real path to the file located by the given
path.
|
java.lang.String |
PathService.toString(JimfsPath path) |
Returns the string form of the given path.
|
java.net.URI |
JimfsFileSystem.toUri(JimfsPath path) |
Gets the URI of the given path in this file system.
|
java.net.URI |
PathService.toUri(java.net.URI fileSystemUri,
JimfsPath path) |
Returns the URI for the given path.
|