Package io.deephaven.engine.util.file
Interface FileHandleFactory
- All Known Implementing Classes:
TrackedFileHandleFactory
public interface FileHandleFactory
Factory interface for producing
FileHandle
s.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static final class
-
Method Summary
Modifier and TypeMethodDescription@NotNull FileHandle
makeHandle
(@NotNull File file, @NotNull OpenOption... openOptions) Create a newFileHandle
with the specified set ofOpenOption
s.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 newFileHandle
with the specified set ofOpenOption
s.- Parameters:
file
- TheFile
to openopenOptions
- TheOpenOption
s 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)
-