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 FileStorageReadercloseOpenReader()Closes current writer and opens a reader to read contentsvoidcloseWriter()Closes write processFileKeywriteFile(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 IOExceptionCloses write process- Throws:
IOException- on error
-
-