Uses of Class
io.roastedroot.zerofs.ZeroFsPath
-
Uses of ZeroFsPath in io.roastedroot.zerofs
Classes in io.roastedroot.zerofs that implement interfaces with type arguments of type ZeroFsPathModifier and TypeClassDescription(package private) final classService for creatingZeroFsPathinstances and handling other path-related operations.Fields in io.roastedroot.zerofs declared as ZeroFsPathModifier and TypeFieldDescriptionprivate ZeroFsPathPathService.emptyPathprivate final ZeroFsPathFileFactory.SymbolicLinkSupplier.targetprivate final ZeroFsPathSymbolicLink.targetprivate final ZeroFsPathFileSystemView.workingDirectoryPathMethods in io.roastedroot.zerofs that return ZeroFsPathModifier and TypeMethodDescriptionprivate static ZeroFsPathprivate ZeroFsPathprivate static ZeroFsPathprivate ZeroFsPathPollingWatchService.checkWatchable(Watchable watchable) PathService.createFileName(Name name) Returns a single filename path with the given name.PathService.createPath(Name root, Iterable<Name> names) Returns a path with the given root (or no root, if null) and the given names.protected final ZeroFsPathPathService.createPathInternal(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.ZeroFsPath.getFileName()ZeroFsPath.getName(int index) ZeroFsPath.getParent()ZeroFsPath.getRoot()ZeroFsFileSystem.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.ZeroFsPath.normalize()Parses the given strings as a path.private ZeroFsPathZeroFsSecureDirectoryStream.path()FileSystemView.readSymbolicLink(ZeroFsPath path) Returns the target of the symbolic link at the given path.ZeroFsPath.relativize(Path other) (package private) ZeroFsPathResolves the given name against this path.ZeroFsPath.resolveSibling(String other) ZeroFsPath.resolveSibling(Path other) ZeroFsPath.subpath(int beginIndex, int endIndex) (package private) ZeroFsPathSymbolicLink.target()Returns the target path of this symbolic link.ZeroFsPath.toAbsolutePath()private ZeroFsPathPathService.toPath(PathType.ParseResult parsed) Converts the given URI into a path in this file system.FileSystemView.toRealPath(ZeroFsPath path, PathService pathService, Set<? super LinkOption> options) Gets the real path to the file located by the given path.ZeroFsPath.toRealPath(LinkOption... options) Methods in io.roastedroot.zerofs with parameters of type ZeroFsPathModifier and TypeMethodDescriptionvoidFileSystemView.checkAccess(ZeroFsPath path) Checks access to the file at the given path for the given modes.private voidFileSystemView.checkMovable(File file, ZeroFsPath path) intPathService.compare(ZeroFsPath a, ZeroFsPath b) voidFileSystemView.copy(ZeroFsPath source, FileSystemView destView, ZeroFsPath dest, Set<CopyOption> options, boolean move) Copies or moves the file at the given source path to the given dest path.static SymbolicLinkSymbolicLink.create(int id, FileTime creationTime, ZeroFsPath target) Creates a new symbolic link with the given ID and target.FileSystemView.createDirectory(ZeroFsPath path, FileAttribute<?>... attrs) Creates a new directory at the given path.private FileFileSystemView.createFile(ZeroFsPath path, 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(ZeroFsPath target) Creates a new symbolic link referencing the given target path.FileSystemView.createSymbolicLink(ZeroFsPath path, ZeroFsPath target, FileAttribute<?>... attrs) Creates a new symbolic link at the given path with the given target.private voidFileSystemView.delete(DirectoryEntry entry, FileSystemView.DeleteMode deleteMode, ZeroFsPath pathForException) Deletes the given directory entry from its parent directory.voidFileSystemView.deleteFile(ZeroFsPath path, FileSystemView.DeleteMode deleteMode) Deletes the file at the given absolute path.private static FileSystemViewZeroFsFileSystemProvider.getDefaultView(ZeroFsPath path) Returns the default file system view for the given path.<V extends FileAttributeView>
VFileSystemView.getFileAttributeView(ZeroFsPath path, Class<V> type, Set<? super LinkOption> options) Returns a file attribute view for the given path in this view.FileSystemView.getOrCreateRegularFile(ZeroFsPath 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(ZeroFsPath path, Set<OpenOption> options, FileAttribute<?>[] attrs) Gets or creates a new regular file with a write lock (assuming the file does not exist).intPathService.hash(ZeroFsPath path) Creates a hash code for the given path.booleanFileSystemView.isSameFile(ZeroFsPath path, FileSystemView view2, ZeroFsPath path2) Returns whether or not the two given paths locate the same file.voidFileSystemView.link(ZeroFsPath link, FileSystemView existingView, ZeroFsPath existing) Creates a hard link at the given link path to the regular file at the given path.private DirectoryEntryFileSystemView.lookUp(ZeroFsPath path, Set<? super LinkOption> options) Looks up the file at the given path without locking.FileTree.lookUp(File workingDirectory, ZeroFsPath path, Set<? super LinkOption> options) Returns the result of the file lookup for the given path.private DirectoryEntryFileTree.lookUp(File dir, ZeroFsPath path, Set<? super LinkOption> options, int linkDepth) (package private) DirectoryEntryZeroFsFileStore.lookUp(File workingDirectory, ZeroFsPath path, Set<? super LinkOption> options) Looks up the file at the given path using the given link options.private RegularFileFileSystemView.lookUpRegularFile(ZeroFsPath 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(ZeroFsPath path, Set<? super LinkOption> options) Attempt to look up the file at the given path.FileSystemView.newDirectoryStream(ZeroFsPath dir, DirectoryStream.Filter<? super Path> filter, Set<? super LinkOption> options, ZeroFsPath basePathForStream) Creates a new directory stream for the directory located by the given path.private ZeroFsFileChannelZeroFsFileSystemProvider.newZeroFsFileChannel(ZeroFsPath path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) <A extends BasicFileAttributes>
AFileSystemView.readAttributes(ZeroFsPath 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(ZeroFsPath 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(ZeroFsPath path) Returns the target of the symbolic link at the given path.voidFileSystemView.setAttribute(ZeroFsPath 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(ZeroFsPath 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.FileFactory.symbolicLinkCreator(ZeroFsPath target) Returns a supplier that creates a symbolic links to the given path.(package private) Supplier<SymbolicLink> ZeroFsFileStore.symbolicLinkCreator(ZeroFsPath target) Returns a supplier that creates a new symbolic link with the given target.private PollingWatchService.SnapshotPollingWatchService.takeSnapshot(ZeroFsPath path) FileSystemView.toRealPath(ZeroFsPath path, PathService pathService, Set<? super LinkOption> options) Gets the real path to the file located by the given path.PathService.toString(ZeroFsPath path) Returns the string form of the given path.PathService.toUri(URI fileSystemUri, ZeroFsPath path) Returns the URI for the given path.ZeroFsFileSystem.toUri(ZeroFsPath path) Gets the URI of the given path in this file system.Constructors in io.roastedroot.zerofs with parameters of type ZeroFsPathModifierConstructorDescriptionFileSystemView(ZeroFsFileStore store, Directory workingDirectory, ZeroFsPath workingDirectoryPath) Creates a new file system view.privateSymbolicLink(int id, FileTime creationTime, ZeroFsPath target) protectedSymbolicLinkSupplier(ZeroFsPath target)