Interface FileIOFactory
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AsyncFileIOFactory,BufferedFileIOFactory,EncryptedFileIOFactory,RandomAccessFileIOFactory,UnzipFileIOFactory,WriteOnlyZipFileIOFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface FileIOFactory extends Serializable
FileIOfactory definition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FileIOcreate(File file)Creates I/O interface for file with default I/O mode.FileIOcreate(File file, OpenOption... modes)Creates I/O interface for file with specified mode.
-
-
-
Method Detail
-
create
default FileIO create(File file) throws IOException
Creates I/O interface for file with default I/O mode.- Parameters:
file- File.- Returns:
- File I/O interface.
- Throws:
IOException- If I/O interface creation was failed.
-
create
FileIO create(File file, OpenOption... modes) throws IOException
Creates I/O interface for file with specified mode.- Parameters:
file- Filemodes- Open modes.- Returns:
- File I/O interface.
- Throws:
IOException- If I/O interface creation was failed.
-
-