Interface FileStorageWriter
-
- All Known Implementing Classes:
RandomAccessFileStoreWriter
public interface FileStorageWriter
- Since:
- 5.0
- Author:
- Eugene Petrenko
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileStorageReader
closeOpenReader()
Closes current writer and opens a reader to read contentsvoid
closeWriter()
Closes write processFileKey
writeFile(File file)
Copies file and returns file id
-
-
-
Method Detail
-
writeFile
@NotNull FileKey writeFile(@NotNull File file) throws IOException
Copies file and returns file id- Parameters:
file
- a file to copy- Returns:
- unique id of stored file
- Throws:
IOException
- on error
-
closeOpenReader
@NotNull FileStorageReader closeOpenReader() throws IOException
Closes current writer and opens a reader to read contents- Returns:
- reader
- Throws:
IOException
- error
-
closeWriter
void closeWriter() throws IOException
Closes write process- Throws:
IOException
- on error
-
-