Uses of Class
com.google.common.jimfs.RegularFile
-
Uses of RegularFile in com.google.common.jimfs
Classes in com.google.common.jimfs that implement interfaces with type arguments of type RegularFileFields in com.google.common.jimfs declared as RegularFileModifier and TypeFieldDescription(package private) final RegularFileHeapDisk.blockCacheCache of free blocks to be allocated to files.private final RegularFileJimfsFileChannel.file(package private) RegularFileJimfsInputStream.file(package private) RegularFileJimfsOutputStream.fileFields in com.google.common.jimfs with type parameters of type RegularFileModifier and TypeFieldDescriptionprivate final com.google.common.base.Supplier<RegularFile> FileFactory.regularFileSupplierMethods in com.google.common.jimfs 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(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 RegularFileFileSystemView.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 RegularFileFileSystemView.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 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 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 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 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)