Uses of Class
com.google.common.jimfs.JimfsPath
-
Uses of JimfsPath in com.google.common.jimfs
Fields in com.google.common.jimfs declared as JimfsPathModifier and TypeFieldDescriptionprivate JimfsPath
PathService.emptyPath
private final JimfsPath
FileFactory.SymbolicLinkSupplier.target
private final JimfsPath
SymbolicLink.target
private final JimfsPath
FileSystemView.workingDirectoryPath
Methods in com.google.common.jimfs that return JimfsPathModifier and TypeMethodDescriptionprivate static JimfsPath
private @Nullable JimfsPath
private static JimfsPath
private JimfsPath
PollingWatchService.checkWatchable
(Watchable watchable) PathService.createFileName
(Name name) Returns a single filename path with the given name.PathService.createPath
(@Nullable Name root, Iterable<Name> names) Returns a path with the given root (or no root, if null) and the given names.protected final JimfsPath
PathService.createPathInternal
(@Nullable Name root, Iterable<Name> names) Returns a path with the given root (or no root, if null) and the given names.PathService.createRelativePath
(Iterable<Name> names) Returns a relative path with the given names.PathService.createRoot
(Name root) Returns a root path with the given name.PathService.emptyPath()
Returns an empty path which has a single name, the empty string.Converts the path of the given URI into a path for this file system.@Nullable JimfsPath
JimfsPath.getFileName()
JimfsPath.getName
(int index) @Nullable JimfsPath
JimfsPath.getParent()
@Nullable JimfsPath
JimfsPath.getRoot()
JimfsFileSystem.getWorkingDirectory()
Returns the working directory path for this file system.FileSystemView.getWorkingDirectoryPath()
Returns the path of the working directory at the time this view was created.JimfsPath.normalize()
Parses the given strings as a path.private JimfsPath
JimfsSecureDirectoryStream.path()
FileSystemView.readSymbolicLink
(JimfsPath path) Returns the target of the symbolic link at the given path.JimfsPath.relativize
(Path other) (package private) JimfsPath
Resolves the given name against this path.JimfsPath.resolveSibling
(String other) JimfsPath.resolveSibling
(Path other) JimfsPath.subpath
(int beginIndex, int endIndex) (package private) JimfsPath
SymbolicLink.target()
Returns the target path of this symbolic link.JimfsPath.toAbsolutePath()
Converts the given URI into a path in this file system.private JimfsPath
PathService.toPath
(PathType.ParseResult parsed) FileSystemView.toRealPath
(JimfsPath path, PathService pathService, Set<? super LinkOption> options) Gets the real path to the file located by the given path.JimfsPath.toRealPath
(LinkOption... options) Methods in com.google.common.jimfs with parameters of type JimfsPathModifier and TypeMethodDescriptionvoid
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
void
FileSystemView.copy
(JimfsPath source, FileSystemView destView, JimfsPath dest, Set<CopyOption> options, boolean move) Copies or moves the file at the given source path to the given dest path.static SymbolicLink
Creates a new symbolic link with the given ID and target.FileSystemView.createDirectory
(JimfsPath path, 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, 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.FileSystemView.createSymbolicLink
(JimfsPath path, JimfsPath target, 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 FileAttributeView>
@Nullable VFileSystemView.getFileAttributeView
(JimfsPath path, Class<V> type, Set<? super LinkOption> options) Returns a file attribute view for the given path in this view.FileSystemView.getOrCreateRegularFile
(JimfsPath path, Set<OpenOption> options, 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, Set<OpenOption> options, FileAttribute<?>[] attrs) Gets or creates a new regular file with a write lock (assuming the file does not exist).int
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, Set<? super LinkOption> options) Looks up the file at the given path without locking.FileTree.lookUp
(File workingDirectory, JimfsPath path, Set<? super LinkOption> options) Returns the result of the file lookup for the given path.private @Nullable DirectoryEntry
FileTree.lookUp
(File dir, JimfsPath path, Set<? super LinkOption> options, int linkDepth) (package private) DirectoryEntry
JimfsFileStore.lookUp
(File workingDirectory, JimfsPath path, Set<? super LinkOption> options) Looks up the file at the given path using the given link options.private @Nullable RegularFile
FileSystemView.lookUpRegularFile
(JimfsPath path, Set<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, Set<? super LinkOption> options) Attempt to look up the file at the given path.FileSystemView.newDirectoryStream
(JimfsPath dir, DirectoryStream.Filter<? super Path> filter, Set<? super LinkOption> options, JimfsPath basePathForStream) Creates a new directory stream for the directory located by the given path.private JimfsFileChannel
JimfsFileSystemProvider.newJimfsFileChannel
(JimfsPath path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) <A extends BasicFileAttributes>
AFileSystemView.readAttributes
(JimfsPath path, Class<A> type, Set<? super LinkOption> options) Reads attributes of the file located by the given path in this view as an object.FileSystemView.readAttributes
(JimfsPath path, String attributes, Set<? super LinkOption> options) Reads attributes of the file located by the given path in this view as a map.FileSystemView.readSymbolicLink
(JimfsPath path) Returns the target of the symbolic link at the given path.void
FileSystemView.setAttribute
(JimfsPath path, String attribute, Object value, Set<? super LinkOption> options) Sets the given attribute to the given value on the file located by the given path in this view.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) FileSystemView.toRealPath
(JimfsPath path, PathService pathService, Set<? super LinkOption> options) Gets the real path to the file located by the given path.Returns the string form of the given path.Gets the URI of the given path in this file system.Returns the URI for the given path.Constructors in com.google.common.jimfs with parameters of type JimfsPathModifierConstructorDescriptionFileSystemView
(JimfsFileStore store, Directory workingDirectory, JimfsPath workingDirectoryPath) Creates a new file system view.private
SymbolicLink
(int id, FileTime creationTime, JimfsPath target) protected
SymbolicLinkSupplier
(JimfsPath target)