Uses of Class
com.google.common.jimfs.JimfsPath
-
Uses of JimfsPath in com.google.common.jimfs
Classes in com.google.common.jimfs that implement interfaces with type arguments of type JimfsPathModifier and TypeClassDescription(package private) final classService for creatingJimfsPathinstances and handling other path-related operations.Fields in com.google.common.jimfs declared as JimfsPathModifier and TypeFieldDescriptionprivate JimfsPathPathService.emptyPathprivate final JimfsPathFileFactory.SymbolicLinkSupplier.targetprivate final JimfsPathSymbolicLink.targetprivate final JimfsPathFileSystemView.workingDirectoryPathMethods in com.google.common.jimfs that return JimfsPathModifier and TypeMethodDescriptionprivate static JimfsPathprivate @Nullable JimfsPathprivate static JimfsPathprivate JimfsPathPollingWatchService.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 JimfsPathPathService.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 JimfsPathJimfsPath.getFileName()JimfsPath.getName(int index) @Nullable JimfsPathJimfsPath.getParent()@Nullable JimfsPathJimfsPath.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 JimfsPathJimfsSecureDirectoryStream.path()FileSystemView.readSymbolicLink(JimfsPath path) Returns the target of the symbolic link at the given path.JimfsPath.relativize(Path other) (package private) JimfsPathResolves the given name against this path.JimfsPath.resolveSibling(String other) JimfsPath.resolveSibling(Path other) JimfsPath.subpath(int beginIndex, int endIndex) (package private) JimfsPathSymbolicLink.target()Returns the target path of this symbolic link.JimfsPath.toAbsolutePath()Converts the given URI into a path in this file system.private JimfsPathPathService.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 TypeMethodDescriptionvoidFileSystemView.checkAccess(JimfsPath path) Checks access to the file at the given path for the given modes.private voidFileSystemView.checkMovable(File file, JimfsPath path) intvoidFileSystemView.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 SymbolicLinkCreates 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 FileFileSystemView.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) SymbolicLinkFileFactory.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 voidFileSystemView.delete(DirectoryEntry entry, FileSystemView.DeleteMode deleteMode, JimfsPath pathForException) Deletes the given directory entry from its parent directory.voidFileSystemView.deleteFile(JimfsPath path, FileSystemView.DeleteMode deleteMode) Deletes the file at the given absolute path.private static FileSystemViewJimfsFileSystemProvider.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 RegularFileFileSystemView.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).intCreates a hash code for the given path.booleanFileSystemView.isSameFile(JimfsPath path, FileSystemView view2, JimfsPath path2) Returns whether or not the two given paths locate the same file.voidFileSystemView.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 DirectoryEntryFileSystemView.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 DirectoryEntryFileTree.lookUp(File dir, JimfsPath path, Set<? super LinkOption> options, int linkDepth) (package private) DirectoryEntryJimfsFileStore.lookUp(File workingDirectory, JimfsPath path, Set<? super LinkOption> options) Looks up the file at the given path using the given link options.private @Nullable RegularFileFileSystemView.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) DirectoryEntryFileSystemView.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 JimfsFileChannelJimfsFileSystemProvider.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.voidFileSystemView.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.SnapshotPollingWatchService.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.privateSymbolicLink(int id, FileTime creationTime, JimfsPath target) protectedSymbolicLinkSupplier(JimfsPath target)