Package org.deepsymmetry.cratedigger
Interface Archivist.ArchiveListener
-
- Enclosing class:
- Archivist
public static interface Archivist.ArchiveListener
An interface that can be used to display progress to the user as an archive is being created, and allow them to cancel the process if desired.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
continueCreating(int tracksCompleted, int tracksTotal)
Called once we determine how many tracks need to be archived, and as each one is completed, so that progress can be displayed; the process can be canceled by returningfalse
.
-
-
-
Method Detail
-
continueCreating
boolean continueCreating(int tracksCompleted, int tracksTotal)
Called once we determine how many tracks need to be archived, and as each one is completed, so that progress can be displayed; the process can be canceled by returningfalse
.- Parameters:
tracksCompleted
- how many tracks have been added to the archivetracksTotal
- how many tracks are present in the media export being archived- Returns:
true
to continue archiving tracks, orfalse
to cancel the process and delete the archive.
-
-