hosain-fouad / dotify

Automatically exported from code.google.com/p/dotify
0 stars 3 forks source link

Move temp file handling to FileJuggler #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Temp files are handled by FileJuggler (in org.daisy.util). However, when temp 
files are kept in Dotify, files are copied from the current temp file. This is 
somewhat ineffective. It would be better this was handled by FileJuggler. The 
current reuse of temp files would then be replaced with moving the file to a 
temp file directory if the files should be kept.

Adding the following constructor to FileJuggler:
FileJuggler(File pathToTemp, boolean keepFilesOnClose)

void writeTempFiles(boolean value)
boolean isWritingTempFiles()

Adding this to FileJuggler may be somewhat confusing as the "juggling" part is 
no longer used and swap() might have to be renamed. Therefore, creating another 
class building on this might be a better solution.

Original issue reported on code.google.com by joel.hak...@mtm.se on 26 Apr 2013 at 7:26

GoogleCodeExporter commented 9 years ago
Should be:

reuseTempFiles(boolean value)
boolean isReusingTempFiles()

Original comment by joel.hak...@mtm.se on 26 Apr 2013 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by joel.hak...@mtm.se on 24 Sep 2013 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by joel.hak...@mtm.se on 31 Jan 2014 at 1:23