Uses of Class
io.roastedroot.zerofs.RegularFile
-
Uses of RegularFile in io.roastedroot.zerofs
Fields in io.roastedroot.zerofs declared as RegularFileModifier and TypeFieldDescription(package private) final RegularFileHeapDisk.blockCacheCache of free blocks to be allocated to files.private final RegularFileZeroFsFileChannel.file(package private) RegularFileZeroFsInputStream.file(package private) RegularFileZeroFsOutputStream.fileFields in io.roastedroot.zerofs with type parameters of type RegularFileModifier and TypeFieldDescriptionprivate final Supplier<RegularFile> FileFactory.regularFileSupplierMethods in io.roastedroot.zerofs that return RegularFileModifier and TypeMethodDescription(package private) RegularFileRegularFile.copyWithoutContent(int id, FileTime creationTime) static RegularFileCreates a new regular file with the given ID and using the given disk.private RegularFileHeapDisk.createBlockCache(int maxCachedBlockCount) (package private) RegularFileFileFactory.createRegularFile()Creates a new regular file.FileFactory.RegularFileSupplier.get()FileSystemView.getOrCreateRegularFile(ZeroFsPath path, Set<OpenOption> options, FileAttribute<?>... attrs) Gets the regular file at the given path, creating it if it doesn't exist and the given options specify that it should be created.private RegularFileFileSystemView.getOrCreateRegularFileWithWriteLock(ZeroFsPath path, Set<OpenOption> options, FileAttribute<?>[] attrs) Gets or creates a new regular file with a write lock (assuming the file does not exist).private RegularFileFileSystemView.lookUpRegularFile(ZeroFsPath path, Set<OpenOption> options) Looks up the regular file at the given path, throwing an exception if the file isn't a regular file.private static RegularFileFileSystemView.open(RegularFile file, Set<OpenOption> options) Opens the given regular file with the given options, truncating it if necessary and incrementing its open count.Methods in io.roastedroot.zerofs that return types with arguments of type RegularFileModifier and TypeMethodDescriptionFileFactory.regularFileCreator()Returns a supplier that creates regular files.(package private) Supplier<RegularFile> ZeroFsFileStore.regularFileCreator()Returns a supplier that creates a new regular file.Methods in io.roastedroot.zerofs with parameters of type RegularFileModifier and TypeMethodDescriptionvoidHeapDisk.allocate(RegularFile file, int count) Allocates the given number of blocks and adds them to the given file.(package private) voidRegularFile.copyBlocksTo(RegularFile target, int count) Copies the lastcountblocks from this file to the end of the given target file.voidHeapDisk.free(RegularFile file) Frees all blocks in the given file.voidHeapDisk.free(RegularFile file, int count) Frees the lastcountblocks from the given file.private static RegularFileFileSystemView.open(RegularFile file, Set<OpenOption> options) Opens the given regular file with the given options, truncating it if necessary and incrementing its open count.(package private) voidRegularFile.transferBlocksTo(RegularFile target, int count) Transfers the lastcountblocks from this file to the end of the given target file.Constructors in io.roastedroot.zerofs with parameters of type RegularFileModifierConstructorDescriptionZeroFsFileChannel(RegularFile file, Set<OpenOption> options, FileSystemState fileSystemState) ZeroFsInputStream(RegularFile file, FileSystemState fileSystemState) (package private)ZeroFsOutputStream(RegularFile file, boolean append, FileSystemState fileSystemState)