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 classA table of directory entries.(package private) final classA mutable, resizable store for bytes.(package private) final classA 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 FileFile.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) FileJimfsFileStore.copyWithoutContent(File file, AttributeCopyOption attributeCopyOption) Creates a copy of the given file, copying its attributes as well according to the givenattributeCopyOption.(package private) FileSymbolicLink.copyWithoutContent(int id, FileTime creationTime) 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.DirectoryEntry.file()Returns the file this entry links to.@Nullable FileDirectoryEntry.fileOrNull()Returns the file this entry links to ornullif the file does not existFileLookup.lookup()Looks up the file.protected final FileAbstractAttributeView.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 voidFileSystemView.checkDeletable(File file, FileSystemView.DeleteMode mode, Path path) Checks that the given file can be deleted, throwing an exception if it can't.private voidFileSystemView.checkMovable(File file, JimfsPath path) private voidFileSystemView.checkNotAncestor(File source, Directory destParent, FileSystemView destView) Checks that source is not an ancestor of dest, throwing an exception if it is.voidAttributeService.copyAttributes(File file, File copy, AttributeCopyOption copyOption) Copies the attributes of the given file to the given copy file.(package private) final voidFile.copyAttributes(File target) Copies the attributes from this file to the given file.(package private) final voidFile.copyBasicAttributes(File target) Copies basic attributes (file times) from this file to the given file.(package private) voidFile.copyContentTo(File file) Copies the content of this file to the given file.(package private) voidRegularFile.copyContentTo(File file) FileFactory.copyWithoutContent(File file) Creates and returns a copy of the given file.(package private) FileJimfsFileStore.copyWithoutContent(File file, AttributeCopyOption attributeCopyOption) Creates a copy of the given file, copying its attributes as well according to the givenattributeCopyOption.private @Nullable DirectoryEntryFileTree.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 Objectabstract @Nullable ObjectReturns 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 ObjectAttributeService.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 ObjectAttributeService.getAttributeInternal(File file, String view, String attribute) voidLinks the given name to the given file in this directory.private voidFileSystemView.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 DirectoryEntryFileTree.lookUp(File dir, JimfsPath path, Set<? super LinkOption> options, int linkDepth) private @Nullable DirectoryEntryLooks up the given names against the given base file.(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 DirectoryEntryFileTree.lookUpLast(@Nullable File dir, Name name, Set<? super LinkOption> options, int linkDepth) Looks up the last element of a path.private static voidAttributeProvider.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) voidabstract voidSets the value of the given attribute in the given file object.voidvoidvoidvoidvoidvoidUserDefinedAttributeProvider.set(File file, String view, String attribute, Object value, boolean create) voidAttributeService.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) voidJimfsFileStore.setAttribute(File file, String attribute, Object value) Sets the given attribute to the given value for the given file.private voidAttributeService.setAttributeInternal(File file, String view, String attribute, Object value, boolean create) voidAttributeService.setInitialAttributes(File file, FileAttribute<?>... attrs) Sets all initial attributes for the given file, including the given attributes if possible.(package private) voidJimfsFileStore.setInitialAttributes(File file, FileAttribute<?>... attrs) Sets initial attributes on the given file.private @Nullable DirectoryFileTree.toDirectory(@Nullable File file) private voidFileSystemView.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 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.Constructors in com.google.common.jimfs with parameters of type FileModifierConstructorDescriptionprotectedAttributes(File file) protectedAttributes(File file) protectedAttributes(File file) (package private)DirectoryEntry(Directory directory, Name name, @Nullable File file)