Uses of Class
io.roastedroot.zerofs.File
-
Uses of File in io.roastedroot.zerofs
Subclasses of File in io.roastedroot.zerofsModifier 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 io.roastedroot.zerofs declared as FileMethods in io.roastedroot.zerofs 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) FileSymbolicLink.copyWithoutContent(int id, FileTime creationTime) (package private) FileZeroFsFileStore.copyWithoutContent(File file, AttributeCopyOption attributeCopyOption) Creates a copy of the given file, copying its attributes as well according to the givenattributeCopyOption.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.DirectoryEntry.file()Returns the file this entry links to.DirectoryEntry.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 io.roastedroot.zerofs with parameters of type FileModifier and TypeMethodDescriptionAttributeProvider.attributes(File file) Returns the set of attributes supported by this view that are present in the given file.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, ZeroFsPath 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) FileZeroFsFileStore.copyWithoutContent(File file, AttributeCopyOption attributeCopyOption) Creates a copy of the given file, copying its attributes as well according to the givenattributeCopyOption.private 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.abstract ObjectReturns the value of the given attribute in the given file or null if the attribute is not supported by this provider.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 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, 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) private DirectoryEntryLooks up the given names against the given base file.(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 DirectoryEntryFileTree.lookUpLast(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) PosixAttributeProvider.readAttributes(File file) (package private) <A extends BasicFileAttributes>
AZeroFsFileStore.readAttributes(File file, Class<A> type) Returns attributes of the given file as an object of the given type.ZeroFsFileStore.readAttributes(File file, String attributes) Returns a map containing the attributes described by the given string mapped to their values.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) voidZeroFsFileStore.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) voidZeroFsFileStore.setInitialAttributes(File file, FileAttribute<?>... attrs) Sets initial attributes on the given file.private DirectoryFileTree.toDirectory(File file) private voidFileSystemView.unlockSourceAndCopy(File sourceFile, File copyFile) Unlocks source and copy files after copying content.UserDefinedAttributeProvider.userDefinedAttributes(File file) Method parameters in io.roastedroot.zerofs with type arguments of type FileModifier and TypeMethodDescriptionprivate 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.Constructors in io.roastedroot.zerofs with parameters of type FileModifierConstructorDescriptionprotectedAttributes(File file) protectedAttributes(File file) protectedAttributes(File file) (package private)DirectoryEntry(Directory directory, Name name, File file)