Package se.datadosen.jalbum
Class AlbumSynchronizer
java.lang.Object
se.datadosen.jalbum.AlbumSynchronizer
Keeps generated files that corresponds to an AlbumObject in sync
(corresponding name/location or deleted status). This class is supposed to
provide a safer way of getting rid of waste files than the previously so
criticised "clean files" behavior of earlier jAlbum versions
- Since:
- 8.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Use delete(AlbumObject).void
delete
(AlbumObject ao) Deletes the corresponding files in the album structurevoid
getAudioClipFile
(AlbumObject ao, File translatedFile) void
moveTo
(AlbumObject ao, File from, File to) Moves the corresponding files in the album structuretranslate
(AlbumObject ao) Translate AlbumObject to corresponding theoretical file in output directory For renames/moves, call before and after renaming/moving albumobject and pass resulting Files to moveTo method
-
Field Details
-
engine
-
debugMode
public static boolean debugMode
-
-
Constructor Details
-
AlbumSynchronizer
-
-
Method Details
-
translate
Translate AlbumObject to corresponding theoretical file in output directory For renames/moves, call before and after renaming/moving albumobject and pass resulting Files to moveTo method -
moveTo
Moves the corresponding files in the album structure -
delete
Deletes the corresponding files in the album structure -
delete
Deprecated.Use delete(AlbumObject). Used by online jAlbumDeletes the corresponding files in the album structure Pass File given from call to translate- See Also:
-
deleteOriginal
-
getAudioClipFile
-