Uses of Class
io.roastedroot.zerofs.RegularFile
-
-
Uses of RegularFile in io.roastedroot.zerofs
Fields in io.roastedroot.zerofs declared as RegularFile Modifier and Type Field Description (package private) RegularFileHeapDisk. blockCacheCache of free blocks to be allocated to files.private RegularFileZeroFsFileChannel. file(package private) RegularFileZeroFsInputStream. file(package private) RegularFileZeroFsOutputStream. fileFields in io.roastedroot.zerofs with type parameters of type RegularFile Modifier and Type Field Description private java.util.function.Supplier<RegularFile>FileFactory. regularFileSupplierMethods in io.roastedroot.zerofs that return RegularFile Modifier and Type Method Description (package private) RegularFileRegularFile. copyWithoutContent(int id, java.nio.file.attribute.FileTime creationTime)static RegularFileRegularFile. create(int id, java.nio.file.attribute.FileTime creationTime, HeapDisk disk)Creates 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.RegularFileFileFactory.RegularFileSupplier. get()RegularFileFileSystemView. getOrCreateRegularFile(ZeroFsPath path, java.util.Set<java.nio.file.OpenOption> options, java.nio.file.attribute.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, java.util.Set<java.nio.file.OpenOption> options, java.nio.file.attribute.FileAttribute<?>[] attrs)Gets or creates a new regular file with a write lock (assuming the file does not exist).private RegularFileFileSystemView. lookUpRegularFile(ZeroFsPath path, java.util.Set<java.nio.file.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, java.util.Set<java.nio.file.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 RegularFile Modifier and Type Method Description java.util.function.Supplier<RegularFile>FileFactory. regularFileCreator()Returns a supplier that creates regular files.(package private) java.util.function.Supplier<RegularFile>ZeroFsFileStore. regularFileCreator()Returns a supplier that creates a new regular file.Methods in io.roastedroot.zerofs with parameters of type RegularFile Modifier and Type Method Description voidHeapDisk. 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, java.util.Set<java.nio.file.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 RegularFile Constructor Description ZeroFsFileChannel(RegularFile file, java.util.Set<java.nio.file.OpenOption> options, FileSystemState fileSystemState)ZeroFsInputStream(RegularFile file, FileSystemState fileSystemState)ZeroFsOutputStream(RegularFile file, boolean append, FileSystemState fileSystemState)
-