Package PamUtils.worker.filelist
Class WavListWorker
- All Implemented Interfaces:
PamWorkWrapper<FileListData<WavFileType>>
Worker which extracts acoustic files from a folder.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allFilesTask
(FileListData<WavFileType> fileList) Called once the main list of files has been made so that additional operations can be applied to every file, such as checking sample rates, etc.createFile
(File baseFile) Creates the file.boolean
eachFileTask
(WavFileType aFile) Called every time a file is discovered in the main search.Methods inherited from class PamUtils.worker.filelist.FileListWorker
makeFileListProcess, runBackgroundTask, startFileListProcess, startFileListProcess, taskFinished
-
Constructor Details
-
WavListWorker
-
-
Method Details
-
createFile
Description copied from class:FileListWorker
Creates the file. Can override to make enhanced file types, e.g. with the wav file audioinfo.- Specified by:
createFile
in classFileListWorker<WavFileType>
- Returns:
-
eachFileTask
Description copied from class:FileListWorker
Called every time a file is discovered in the main search. Can check things like consistency of sample rate in each file as progress continues.- Overrides:
eachFileTask
in classFileListWorker<WavFileType>
- Returns:
- true if processing can continue
-
allFilesTask
Description copied from class:FileListWorker
Called once the main list of files has been made so that additional operations can be applied to every file, such as checking sample rates, etc.- Overrides:
allFilesTask
in classFileListWorker<WavFileType>
- Returns:
- true if all OK.
-