|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
net.sourceforge.atunes.kernel.modules.repository.RepositoryLoader
public class RepositoryLoader
Class for loading audiofiles into repository.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
RepositoryLoader(java.util.List<java.io.File> folders,
boolean refresh)
Instantiates a new repository loader. |
Method Summary | |
---|---|
void |
addRepositoryLoaderListener(LoaderListener l)
Adds the repository loader listener. |
static void |
addToRepository(Repository rep,
java.util.List<java.io.File> files,
java.io.File folder)
Add files of a folder to repository. |
static int |
countFilesInRepository(Repository rep)
Count files in repository. |
static void |
fillStats(Repository repository,
AudioFile song)
Fill stats. |
Repository |
getRepository()
Gets the repository. |
static java.util.List<AudioFile> |
getSongsForDir(java.io.File dir)
Gets the songs for dir. |
void |
interruptLoad()
Interrupt load. |
static void |
refreshFile(Repository repository,
AudioFile file)
Refresh navigator views. |
void |
run()
|
void |
setOldRepository(Repository oldRepository)
Sets the old repository. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RepositoryLoader(java.util.List<java.io.File> folders, boolean refresh)
folders
- the foldersrefresh
- the refreshMethod Detail |
---|
public static void addToRepository(Repository rep, java.util.List<java.io.File> files, java.io.File folder)
rep
- Repository to which files should be addedfiles
- Files to addfolder
- Folder in which the files are locatedpublic static int countFilesInRepository(Repository rep)
rep
- the rep
public static void fillStats(Repository repository, AudioFile song)
repository
- the repositorysong
- the songpublic static java.util.List<AudioFile> getSongsForDir(java.io.File dir)
dir
- the dir
public static void refreshFile(Repository repository, AudioFile file)
repository
- the repositoryfile
- the filepublic void addRepositoryLoaderListener(LoaderListener l)
l
- the lpublic Repository getRepository()
public void interruptLoad()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setOldRepository(Repository oldRepository)
oldRepository
- the oldRepository to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |