Uses of Class
com.google.common.jimfs.File
-
Uses of File in com.google.common.jimfs
Subclasses of File in com.google.common.jimfsModifier and TypeClassDescription(package private) final class
A table of directory entries.(package private) final class
A mutable, resizable store for bytes.(package private) final class
A symbolic link file, containing a path.Fields in com.google.common.jimfs declared as FileMethods in com.google.common.jimfs that return FileModifier and TypeMethodDescription(package private) abstract File
File.copyWithoutContent
(int id, FileTime creationTime) Creates a new file of the same type as this file with the given ID and creation time.FileFactory.copyWithoutContent
(File file) Creates and returns a copy of the given file.(package private) File
JimfsFileStore.copyWithoutContent
(File file, AttributeCopyOption attributeCopyOption) Creates a copy of the given file, copying its attributes as well according to the givenattributeCopyOption
.(package private) File
SymbolicLink.copyWithoutContent
(int id, FileTime creationTime) 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.DirectoryEntry.file()
Returns the file this entry links to.@Nullable File
DirectoryEntry.fileOrNull()
Returns the file this entry links to ornull
if the file does not existFileLookup.lookup()
Looks up the file.protected final File
AbstractAttributeView.lookupFile()
Looks up the file to get or set attributes on.Methods in com.google.common.jimfs with parameters of type FileModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet
<String> AttributeProvider.attributes
(File file) Returns the set of attributes supported by this view that are present in the given file.com.google.common.collect.ImmutableSet
<String> UserDefinedAttributeProvider.attributes
(File file) private void
FileSystemView.checkDeletable
(File file, FileSystemView.DeleteMode mode, Path path) Checks that the given file can be deleted, throwing an exception if it can't.private void
FileSystemView.checkMovable
(File file, JimfsPath path) private void
FileSystemView.checkNotAncestor
(File source, Directory destParent, FileSystemView destView) Checks that source is not an ancestor of dest, throwing an exception if it is.void
AttributeService.copyAttributes
(File file, File copy, AttributeCopyOption copyOption) Copies the attributes of the given file to the given copy file.(package private) final void
File.copyAttributes
(File target) Copies the attributes from this file to the given file.(package private) final void
File.copyBasicAttributes
(File target) Copies basic attributes (file times) from this file to the given file.(package private) void
File.copyContentTo
(File file) Copies the content of this file to the given file.(package private) void
RegularFile.copyContentTo
(File file) FileFactory.copyWithoutContent
(File file) Creates and returns a copy of the given file.(package private) File
JimfsFileStore.copyWithoutContent
(File file, AttributeCopyOption attributeCopyOption) Creates a copy of the given file, copying its attributes as well according to the givenattributeCopyOption
.private @Nullable DirectoryEntry
FileTree.followSymbolicLink
(File dir, SymbolicLink link, int linkDepth) Returns the directory entry located by the target path of the given symbolic link, resolved relative to the given directory.@Nullable Object
abstract @Nullable Object
Returns the value of the given attribute in the given file or null if the attribute is not supported by this provider.@Nullable Object
@Nullable Object
@Nullable Object
@Nullable Object
@Nullable Object
@Nullable Object
AttributeService.getAttribute
(File file, String attribute) Gets the value of the given attribute for the given file.AttributeService.getAttribute
(File file, String view, String attribute) Gets the value of the given attribute for the given view and file.private @Nullable Object
AttributeService.getAttributeInternal
(File file, String view, String attribute) void
Links the given name to the given file in this directory.private void
FileSystemView.lockSourceAndCopy
(File sourceFile, File copyFile) Locks source and copy files before copying content.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) private @Nullable DirectoryEntry
Looks up the given names against the given base file.(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 DirectoryEntry
FileTree.lookUpLast
(@Nullable File dir, Name name, Set<? super LinkOption> options, int linkDepth) Looks up the last element of a path.private static void
AttributeProvider.readAttributes
(File file) Reads this provider's attributes from the given file as an attributes object.<A extends BasicFileAttributes>
AAttributeService.readAttributes
(File file, Class<A> type) Returns attributes of the given file as an object of the given type.AttributeService.readAttributes
(File file, String attributes) BasicAttributeProvider.readAttributes
(File file) DosAttributeProvider.readAttributes
(File file) (package private) <A extends BasicFileAttributes>
AJimfsFileStore.readAttributes
(File file, Class<A> type) Returns attributes of the given file as an object of the given type.JimfsFileStore.readAttributes
(File file, String attributes) Returns a map containing the attributes described by the given string mapped to their values.PosixAttributeProvider.readAttributes
(File file) void
abstract void
Sets the value of the given attribute in the given file object.void
void
void
void
void
void
UserDefinedAttributeProvider.set
(File file, String view, String attribute, Object value, boolean create) void
AttributeService.setAttribute
(File file, String attribute, Object value, boolean create) Sets the value of the given attribute to the given value for the given file.(package private) void
JimfsFileStore.setAttribute
(File file, String attribute, Object value) Sets the given attribute to the given value for the given file.private void
AttributeService.setAttributeInternal
(File file, String view, String attribute, Object value, boolean create) void
AttributeService.setInitialAttributes
(File file, FileAttribute<?>... attrs) Sets all initial attributes for the given file, including the given attributes if possible.(package private) void
JimfsFileStore.setInitialAttributes
(File file, FileAttribute<?>... attrs) Sets initial attributes on the given file.private @Nullable Directory
FileTree.toDirectory
(@Nullable File file) private void
FileSystemView.unlockSourceAndCopy
(File sourceFile, File copyFile) Unlocks source and copy files after copying content.private static com.google.common.collect.ImmutableSet
<String> UserDefinedAttributeProvider.userDefinedAttributes
(File file) Method parameters in com.google.common.jimfs with type arguments of type FileModifier and TypeMethodDescriptionprivate 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.Constructors in com.google.common.jimfs with parameters of type FileModifierConstructorDescriptionprotected
Attributes
(File file) protected
Attributes
(File file) protected
Attributes
(File file) (package private)
DirectoryEntry
(Directory directory, Name name, @Nullable File file)