Uses of Class
com.google.common.jimfs.Name
-
-
Uses of Name in com.google.common.jimfs
Fields in com.google.common.jimfs declared as Name Modifier and Type Field Description (package private) static Name
Name. EMPTY
The empty name.private Name
DirectoryEntry. name
static Name
Name. PARENT
The name to use for a link from a directory to its parent directory.private @Nullable Name
JimfsPath. root
static Name
Name. SELF
The name to use for a link from a directory to itself.Fields in com.google.common.jimfs with type parameters of type Name Modifier and Type Field Description private static com.google.common.collect.Ordering<java.lang.Iterable<Name>>
PathService. CANONICAL_NAMES_ORDERING
private static com.google.common.collect.Ordering<Name>
Name. CANONICAL_ORDERING
private static com.google.common.collect.Ordering<Name>
PathService. CANONICAL_ROOT_ORDERING
private static com.google.common.collect.Ordering<java.lang.Iterable<Name>>
PathService. DISPLAY_NAMES_ORDERING
private static com.google.common.collect.Ordering<Name>
Name. DISPLAY_ORDERING
private static com.google.common.collect.Ordering<Name>
PathService. DISPLAY_ROOT_ORDERING
private static com.google.common.collect.ImmutableList<Name>
FileTree. EMPTY_PATH_NAMES
private @Nullable java.util.Iterator<Name>
JimfsSecureDirectoryStream.DirectoryIterator. fileNames
private com.google.common.collect.ImmutableMap<Name,java.nio.file.attribute.FileTime>
PollingWatchService.Snapshot. modifiedTimes
Maps directory entry names to last modified times.private com.google.common.collect.ImmutableList<Name>
JimfsPath. names
private com.google.common.collect.Ordering<java.lang.Iterable<Name>>
PathService. namesOrdering
private com.google.common.collect.Ordering<Name>
PathService. rootOrdering
private com.google.common.collect.ImmutableSortedMap<Name,Directory>
FileTree. roots
Map of root names to root directories.Methods in com.google.common.jimfs that return Name Modifier and Type Method Description private static Name
Directory. checkNotReserved(Name name, java.lang.String action)
Checks that the given name is not "." or "..".static Name
Name. create(java.lang.String display, java.lang.String canonical)
Creates a name with the given display representation and the given canonical representation.Name
DirectoryEntry. name()
Returns the name of this entry.@Nullable Name
JimfsPath. name()
Returns the file name of this path.Name
PathService. name(java.lang.String name)
Returns theName
form of the given string.@Nullable Name
JimfsPath. root()
Returns the root name, or null if there is no root.(package private) static Name
Name. simple(java.lang.String name)
Creates a new name with no normalization done on the given string.Methods in com.google.common.jimfs that return types with arguments of type Name Modifier and Type Method Description static com.google.common.collect.Ordering<Name>
Name. canonicalOrdering()
Returns an ordering that orders names by their canonical representation.static com.google.common.collect.Ordering<Name>
Name. displayOrdering()
Returns an ordering that orders names by their display representation.com.google.common.collect.ImmutableSortedSet<Name>
FileTree. getRootDirectoryNames()
Returns the names of the root directories in this tree.(package private) com.google.common.collect.ImmutableSortedSet<Name>
JimfsFileStore. getRootDirectoryNames()
Returns the names of the root directories in this store.com.google.common.collect.ImmutableList<Name>
JimfsPath. names()
Returns the list of name elements.(package private) java.util.List<Name>
PathService. names(java.lang.Iterable<java.lang.String> names)
Returns theName
forms of the given strings.com.google.common.collect.ImmutableSortedSet<Name>
Directory. snapshot()
Creates an immutable sorted snapshot of the names this directory contains, excluding "." and "..".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.collect.ImmutableSortedSet<Name>
FileSystemView. snapshotWorkingDirectoryEntries()
Snapshots the entries of the working directory of this view.Methods in com.google.common.jimfs with parameters of type Name Modifier and Type Method Description private static int
Directory. 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 Name
Directory. checkNotReserved(Name name, java.lang.String action)
Checks that the given name is not "." or "..".JimfsPath
PathService. createFileName(Name name)
Returns a single filename path with the given name.JimfsPath
PathService. createPath(@Nullable Name root, java.lang.Iterable<Name> names)
Returns a path with the given root (or no root, if null) and the given names.protected JimfsPath
PathService. createPathInternal(@Nullable Name root, java.lang.Iterable<Name> names)
Returns a path with the given root (or no root, if null) and the given names.static Directory
Directory. createRoot(int id, java.nio.file.attribute.FileTime creationTime, Name name)
Creates a new root directory with the given ID, creation time, and name.JimfsPath
PathService. createRoot(Name root)
Returns a root path with the given name.Directory
FileFactory. createRootDirectory(Name name)
Creates a new root directory with the given name.@Nullable DirectoryEntry
Directory. get(Name name)
Returns the entry for the given name in this table or null if no such entry exists.@Nullable DirectoryEntry
FileTree. getRoot(Name name)
Gets the directory entry for the root with the given name ornull
if no such root exists.(package private) @Nullable Directory
JimfsFileStore. getRoot(Name name)
Returns the root directory with the given name ornull
if no such directory exists.private static boolean
Directory. isReserved(Name name)
Returns true if the given name is "." or "..".void
Directory. link(Name name, File file)
Links the given name to the given file in this directory.private @Nullable DirectoryEntry
FileTree. lookUpLast(@Nullable 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) DirectoryEntry
Directory. remove(Name name)
Removes and returns the entry for the given name from the directory.(package private) JimfsPath
JimfsPath. resolve(Name name)
Resolves the given name against this path.void
Directory. unlink(Name name)
Unlinks the given name from the file it is linked to.Method parameters in com.google.common.jimfs with type arguments of type Name Modifier and Type Method Description JimfsPath
PathService. createPath(@Nullable Name root, java.lang.Iterable<Name> names)
Returns a path with the given root (or no root, if null) and the given names.protected JimfsPath
PathService. createPathInternal(@Nullable Name root, java.lang.Iterable<Name> names)
Returns a path with the given root (or no root, if null) and the given names.JimfsPath
PathService. createRelativePath(java.lang.Iterable<Name> names)
Returns a relative path with the given names.private static boolean
FileTree. isEmpty(com.google.common.collect.ImmutableList<Name> names)
private @Nullable DirectoryEntry
FileTree. 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.Constructors in com.google.common.jimfs with parameters of type Name Constructor Description Directory(int id, java.nio.file.attribute.FileTime creationTime, Name rootName)
DirectoryEntry(Directory directory, Name name, @Nullable File file)
JimfsPath(PathService pathService, @Nullable Name root, java.lang.Iterable<Name> names)
Constructor parameters in com.google.common.jimfs 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.JimfsPath(PathService pathService, @Nullable Name root, java.lang.Iterable<Name> names)
Snapshot(java.util.Map<Name,java.nio.file.attribute.FileTime> modifiedTimes)
-