Uses of Class
io.roastedroot.zerofs.Name
-
-
Uses of Name in io.roastedroot.zerofs
Fields in io.roastedroot.zerofs declared as Name Modifier and Type Field Description (package private) static NameName. EMPTYThe empty name.private NameDirectoryEntry. namestatic NameName. PARENTThe name to use for a link from a directory to its parent directory.private NameZeroFsPath. rootstatic NameName. SELFThe name to use for a link from a directory to itself.Fields in io.roastedroot.zerofs with type parameters of type Name Modifier and Type Field Description private static java.util.Comparator<Name>Name. CANONICAL_COMPARATORprivate static java.util.Comparator<java.lang.Iterable<Name>>PathService. CANONICAL_NAMES_COMPARATORprivate static java.util.Comparator<Name>PathService. CANONICAL_ROOT_COMPARATORprivate static java.util.Comparator<Name>Name. DISPLAY_COMPARATORprivate static java.util.Comparator<java.lang.Iterable<Name>>PathService. DISPLAY_NAMES_COMPARATORprivate static java.util.Comparator<Name>PathService. DISPLAY_ROOT_COMPARATORprivate static java.util.List<Name>FileTree. EMPTY_PATH_NAMESprivate java.util.Iterator<Name>ZeroFsSecureDirectoryStream.DirectoryIterator. fileNamesprivate java.util.Map<Name,java.nio.file.attribute.FileTime>PollingWatchService.Snapshot. modifiedTimesMaps directory entry names to last modified times.private java.util.List<Name>ZeroFsPath. namesprivate java.util.Comparator<java.lang.Iterable<Name>>PathService. namesComparatorprivate java.util.Comparator<Name>PathService. rootComparatorprivate java.util.SortedMap<Name,Directory>FileTree. rootsMap of root names to root directories.Methods in io.roastedroot.zerofs that return Name Modifier and Type Method Description private static NameDirectory. checkNotReserved(Name name, java.lang.String action)Checks that the given name is not "." or "..".static NameName. create(java.lang.String display, java.lang.String canonical)Creates a name with the given display representation and the given canonical representation.NameDirectoryEntry. name()Returns the name of this entry.NamePathService. name(java.lang.String name)Returns theNameform of the given string.NameZeroFsPath. name()Returns the file name of this path.NameZeroFsPath. root()Returns the root name, or null if there is no root.static NameName. simple(java.lang.String name)Creates a new name with no normalization done on the given string.Methods in io.roastedroot.zerofs that return types with arguments of type Name Modifier and Type Method Description (package private) static java.util.Comparator<Name>Name. canonicalComparator()Returns a comparator that orders names by their canonical representation.(package private) static java.util.Comparator<Name>Name. displayComparator()Returns a comparator that orders names by their display representation.java.util.SortedSet<Name>FileTree. getRootDirectoryNames()Returns the names of the root directories in this tree.(package private) java.util.SortedSet<Name>ZeroFsFileStore. getRootDirectoryNames()Returns the names of the root directories in this store.(package private) java.util.List<Name>PathService. names(java.lang.String[] names)Returns theNameforms of the given strings.java.util.List<Name>ZeroFsPath. names()Returns the list of name elements.java.util.SortedSet<Name>Directory. snapshot()Creates an immutable sorted snapshot of the names this directory contains, excluding "." and "..".java.util.Map<Name,java.nio.file.attribute.FileTime>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.java.util.SortedSet<Name>FileSystemView. snapshotWorkingDirectoryEntries()Snapshots the entries of the working directory of this view.Methods in io.roastedroot.zerofs with parameters of type Name Modifier and Type Method Description private static intDirectory. bucketIndex(Name name, int tableLength)Returns the index of the bucket in the array where an entry for the given name should go.private static NameDirectory. checkNotReserved(Name name, java.lang.String action)Checks that the given name is not "." or "..".ZeroFsPathPathService. createFileName(Name name)Returns a single filename path with the given name.ZeroFsPathPathService. createPath(Name root, java.lang.Iterable<Name> names)Returns a path with the given root (or no root, if null) and the given names.protected ZeroFsPathPathService. createPathInternal(Name root, java.lang.Iterable<Name> names)Returns a path with the given root (or no root, if null) and the given names.static DirectoryDirectory. createRoot(int id, java.nio.file.attribute.FileTime creationTime, Name name)Creates a new root directory with the given ID, creation time, and name.ZeroFsPathPathService. createRoot(Name root)Returns a root path with the given name.DirectoryFileFactory. createRootDirectory(Name name)Creates a new root directory with the given name.DirectoryEntryDirectory. get(Name name)Returns the entry for the given name in this table or null if no such entry exists.DirectoryEntryFileTree. getRoot(Name name)Gets the directory entry for the root with the given name ornullif no such root exists.(package private) DirectoryZeroFsFileStore. getRoot(Name name)Returns the root directory with the given name ornullif no such directory exists.private static booleanDirectory. isReserved(Name name)Returns true if the given name is "." or "..".voidDirectory. link(Name name, File file)Links the given name to the given file in this directory.private DirectoryEntryFileTree. lookUpLast(File dir, Name name, java.util.Set<? super java.nio.file.LinkOption> options, int linkDepth)Looks up the last element of a path.(package private) DirectoryEntryDirectory. remove(Name name)Removes and returns the entry for the given name from the directory.(package private) ZeroFsPathZeroFsPath. resolve(Name name)Resolves the given name against this path.voidDirectory. unlink(Name name)Unlinks the given name from the file it is linked to.Method parameters in io.roastedroot.zerofs with type arguments of type Name Modifier and Type Method Description ZeroFsPathPathService. createPath(Name root, java.lang.Iterable<Name> names)Returns a path with the given root (or no root, if null) and the given names.protected ZeroFsPathPathService. createPathInternal(Name root, java.lang.Iterable<Name> names)Returns a path with the given root (or no root, if null) and the given names.ZeroFsPathPathService. createRelativePath(java.lang.Iterable<Name> names)Returns a relative path with the given names.private static booleanFileTree. isEmpty(java.util.List<Name> names)private DirectoryEntryFileTree. lookUp(File dir, java.lang.Iterable<Name> names, java.util.Set<? super java.nio.file.LinkOption> options, int linkDepth)Looks up the given names against the given base file.static java.lang.String[]Util. toArray(java.util.List<Name> names)Constructors in io.roastedroot.zerofs with parameters of type Name Constructor Description Directory(int id, java.nio.file.attribute.FileTime creationTime, Name rootName)DirectoryEntry(Directory directory, Name name, File file)ZeroFsPath(PathService pathService, Name root, Name... names)ZeroFsPath(PathService pathService, Name root, java.util.List<Name> names)Constructor parameters in io.roastedroot.zerofs with type arguments of type Name Constructor Description FileTree(java.util.Map<Name,Directory> roots)Creates a new file tree with the given root directories.Snapshot(java.util.Map<Name,java.nio.file.attribute.FileTime> modifiedTimes)ZeroFsPath(PathService pathService, Name root, java.util.List<Name> names)
-