sk.baka.ambient.library
Class MagnatuneScanner

java.lang.Object
  extended by sk.baka.ambient.library.MagnatuneScanner
All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Void>, IFileScanner

public class MagnatuneScanner
extends java.lang.Object
implements IFileScanner

Scans the Magnatune store.

Author:
Martin Vysny

Constructor Summary
MagnatuneScanner()
           
 
Method Summary
 java.lang.Void call()
           
 TrackOriginEnum getOrigin()
          Returns the storage type.
 void init(Library library, GenreCache genreCache)
          Initializes the scanner.
 boolean isUserNotified()
          Invoked when the scan finishes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MagnatuneScanner

public MagnatuneScanner()
Method Detail

init

public void init(Library library,
                 GenreCache genreCache)
Description copied from interface: IFileScanner
Initializes the scanner.

Specified by:
init in interface IFileScanner
Parameters:
library - the library instance.
genreCache - the genre cache.

call

public java.lang.Void call()
                    throws java.io.IOException,
                           org.xml.sax.SAXException
Specified by:
call in interface java.util.concurrent.Callable<java.lang.Void>
Throws:
java.io.IOException
org.xml.sax.SAXException

getOrigin

public TrackOriginEnum getOrigin()
Description copied from interface: IFileScanner
Returns the storage type.

Specified by:
getOrigin in interface IFileScanner
Returns:
storage type, must not be null.

isUserNotified

public boolean isUserNotified()
Description copied from interface: IFileScanner
Invoked when the scan finishes. Checks if the scanner already provided the user with some kind of notification.

Specified by:
isUserNotified in interface IFileScanner
Returns:
true if user was notified about the scan being finished, false otherwise.


Copyright © 2007-2009. All Rights Reserved.