Uses of Class
com.google.common.jimfs.RegularFile
-
-
Uses of RegularFile in com.google.common.jimfs
Fields in com.google.common.jimfs declared as RegularFile Modifier and Type Field Description (package private) RegularFileHeapDisk. blockCacheCache of free blocks to be allocated to files.private RegularFileJimfsFileChannel. file(package private) RegularFileJimfsInputStream. file(package private) RegularFileJimfsOutputStream. fileFields in com.google.common.jimfs with type parameters of type RegularFile Modifier and Type Field Description private com.google.common.base.Supplier<RegularFile>FileFactory. regularFileSupplierMethods in com.google.common.jimfs 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(JimfsPath 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(JimfsPath 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 @Nullable RegularFileFileSystemView. lookUpRegularFile(JimfsPath 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 com.google.common.jimfs that return types with arguments of type RegularFile Modifier and Type Method Description com.google.common.base.Supplier<RegularFile>FileFactory. regularFileCreator()Returns a supplier that creates regular files.(package private) com.google.common.base.Supplier<RegularFile>JimfsFileStore. regularFileCreator()Returns a supplier that creates a new regular file.Methods in com.google.common.jimfs 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 com.google.common.jimfs with parameters of type RegularFile Constructor Description JimfsFileChannel(RegularFile file, java.util.Set<java.nio.file.OpenOption> options, FileSystemState fileSystemState)JimfsInputStream(RegularFile file, FileSystemState fileSystemState)JimfsOutputStream(RegularFile file, boolean append, FileSystemState fileSystemState)
-