Package be.gaudry.model.tools.gps
Class Runtastic2GpxParser
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
set the origine and destination,
for each file, extract meta,
if dest dir with date (YYYY_MM_DD camera_model) does not exists, create it,
copy file,
check if dest file exists with same date (add counter after filename if exists)
paste file into dest subdir with new name
Provided by the broldev.all.ribbon.launcher project.
- Since:
- 1.0 (May 05, 2018), broldev.all.ribbon.launcher 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (May 05, 2018)
- Author:
- Steph GAUDRY
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected File
(package private) Pattern
(package private) Pattern
(package private) Pattern
(package private) Pattern
Fields inherited from class be.gaudry.model.file.AbstractFileParser
validPreviousProgress
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
init()
Override this to do some initializations before starting the parsing, like reset errors, etc.protected boolean
performOnFile(AbstractBrolWorker<Long> bgw, File file, int progressPercent, int subDirDeep)
Do something on each filevoid
setDestinationRoot(File destinationRoot)
Methods inherited from class be.gaudry.model.file.AbstractFileParser
equals, finalize, getProgressMax, getStartPath, hashCode, isIncludeHiddenFiles, isIncludeSubFolders, isPauseProcessing, isPreCalcProgress, isPreCalculated, parse, parseFiles, performOnDirectory, propertyChange, setIncludeHiddenFiles, setIncludeSubFolders, setLanguage, setPreCalcProgress, setStartPath, togglePause
-
Field Details
-
Constructor Details
-
Runtastic2GpxParser
public Runtastic2GpxParser()
-
-
Method Details
-
setDestinationRoot
-
getErrors
- Returns:
- the errors
-
getTransfered
-
performOnFile
protected boolean performOnFile(AbstractBrolWorker<Long> bgw, File file, int progressPercent, int subDirDeep)Description copied from class:AbstractFileParser
Do something on each file- Specified by:
performOnFile
in classAbstractFileParser<Long>
- Parameters:
bgw
-AbstractBrolWorker
to perform cancel if needed, and report progressfile
- file to checkprogressPercent
- Progress percentagesubDirDeep
- Deep of the directory in comparison with start directory- Returns:
- true if we must stop the parsing of current directory (ie. if we have a vob file, we don't check the other files in this directory) false otherwise
-
init
protected void init()Description copied from class:AbstractFileParser
Override this to do some initializations before starting the parsing, like reset errors, etc.- Overrides:
init
in classAbstractFileParser<Long>
-
addError
-