Uses of Class
com.google.common.jimfs.RegularFile
-
Uses of RegularFile in com.google.common.jimfs
Fields in com.google.common.jimfs declared as RegularFileModifier and TypeFieldDescription(package private) final RegularFile
HeapDisk.blockCache
Cache of free blocks to be allocated to files.private final RegularFile
JimfsFileChannel.file
(package private) RegularFile
JimfsInputStream.file
(package private) RegularFile
JimfsOutputStream.file
Fields in com.google.common.jimfs with type parameters of type RegularFileModifier and TypeFieldDescriptionprivate final com.google.common.base.Supplier
<RegularFile> FileFactory.regularFileSupplier
Methods in com.google.common.jimfs that return RegularFileModifier and TypeMethodDescription(package private) RegularFile
RegularFile.copyWithoutContent
(int id, FileTime creationTime) static RegularFile
Creates a new regular file with the given ID and using the given disk.private RegularFile
HeapDisk.createBlockCache
(int maxCachedBlockCount) (package private) RegularFile
FileFactory.createRegularFile()
Creates a new regular file.FileFactory.RegularFileSupplier.get()
FileSystemView.getOrCreateRegularFile
(JimfsPath 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 RegularFile
FileSystemView.getOrCreateRegularFileWithWriteLock
(JimfsPath path, Set<OpenOption> options, FileAttribute<?>[] attrs) Gets or creates a new regular file with a write lock (assuming the file does not exist).private @Nullable RegularFile
FileSystemView.lookUpRegularFile
(JimfsPath 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 RegularFile
FileSystemView.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 com.google.common.jimfs that return types with arguments of type RegularFileModifier and TypeMethodDescriptioncom.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 RegularFileModifier and TypeMethodDescriptionvoid
HeapDisk.allocate
(RegularFile file, int count) Allocates the given number of blocks and adds them to the given file.(package private) void
RegularFile.copyBlocksTo
(RegularFile target, int count) Copies the lastcount
blocks from this file to the end of the given target file.void
HeapDisk.free
(RegularFile file) Frees all blocks in the given file.void
HeapDisk.free
(RegularFile file, int count) Frees the lastcount
blocks from the given file.private static RegularFile
FileSystemView.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) void
RegularFile.transferBlocksTo
(RegularFile target, int count) Transfers the lastcount
blocks from this file to the end of the given target file.Constructors in com.google.common.jimfs with parameters of type RegularFileModifierConstructorDescriptionJimfsFileChannel
(RegularFile file, Set<OpenOption> options, FileSystemState fileSystemState) JimfsInputStream
(RegularFile file, FileSystemState fileSystemState) (package private)
JimfsOutputStream
(RegularFile file, boolean append, FileSystemState fileSystemState)