Package io.deephaven.engine.util.file
Interface FileHandleFactory
- All Known Implementing Classes:
TrackedFileHandleFactory
public interface FileHandleFactory
Factory interface for producing
FileHandles.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic final class -
Method Summary
Modifier and TypeMethodDescription@NotNull FileHandlemakeHandle(@NotNull File file, @NotNull OpenOption... openOptions) Create a newFileHandlewith the specified set ofOpenOptions.toReadOnlyHandleCreator(@NotNull FileHandleFactory fileHandleFactory) toReadWriteCreateHandleCreator(@NotNull FileHandleFactory fileHandleFactory) toWriteAppendCreateHandleCreator(@NotNull FileHandleFactory fileHandleFactory) toWriteTruncateCreateHandleCreator(@NotNull FileHandleFactory fileHandleFactory)
-
Method Details
-
makeHandle
@NotNull @NotNull FileHandle makeHandle(@NotNull @NotNull File file, @NotNull @NotNull OpenOption... openOptions) throws IOException Create a newFileHandlewith the specified set ofOpenOptions.- Parameters:
file- TheFileto openopenOptions- TheOpenOptions to use- Returns:
- The new file handle
- Throws:
IOException
-
toReadOnlyHandleCreator
static FileHandleFactory.FileToHandleFunction toReadOnlyHandleCreator(@NotNull @NotNull FileHandleFactory fileHandleFactory) -
toReadWriteCreateHandleCreator
static FileHandleFactory.FileToHandleFunction toReadWriteCreateHandleCreator(@NotNull @NotNull FileHandleFactory fileHandleFactory) -
toWriteAppendCreateHandleCreator
static FileHandleFactory.FileToHandleFunction toWriteAppendCreateHandleCreator(@NotNull @NotNull FileHandleFactory fileHandleFactory) -
toWriteTruncateCreateHandleCreator
static FileHandleFactory.FileToHandleFunction toWriteTruncateCreateHandleCreator(@NotNull @NotNull FileHandleFactory fileHandleFactory)
-