sk.baka.ambient.collection
Class CollectionSynchronizer
java.lang.Object
sk.baka.ambient.collection.CollectionSynchronizer
- All Implemented Interfaces:
- Runnable
public class CollectionSynchronizer
- extends Object
- implements Runnable
Downloads tracks from given collection which are missing in the reference
collection. All work is done in the run()
method.
- Author:
- mvy
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionSynchronizer
public CollectionSynchronizer(ICollection reference,
ICollection downloadFrom,
TagFormatter pathFormatter,
String rootPath,
IBackgroundTask task)
- Creates new synchronizer.
- Parameters:
reference
- This is the reference collection, i.e. tracks which are not to
be synchronized.downloadFrom
- Download excess tracks from this collection.pathFormatter
- produces a relative path where the music file should be
stored. Must produce valid paths! Paths are created
automatically.rootPath
- this path is automatically prepended to paths produced by the
pathFormatter
formatter.task
- used for progress reporting, may be null
.
run
public void run()
- Specified by:
run
in interface Runnable
Copyright © 2007-2008. All Rights Reserved.