net.sf.dc.processes.cdimport
Class ImportMovieCD

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.dc.processes.cdimport.ImportCDProcess
          extended by net.sf.dc.processes.cdimport.ImportMovieCD
All Implemented Interfaces:
java.lang.Runnable

public class ImportMovieCD
extends ImportCDProcess

Extract information from movie files (ogg, avi, mpeg, divx, xvid)

Since:
1.3
Version:
0.50
Author:
Robert-Jan van der Waals

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 net.sf.dc.processes.cdimport.ImportCDProcess
cdName, confirmDirs, recursiveDirs, sourceDir, wf
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ImportMovieCD(ImportCDDialog ui, java.lang.String sourceDir, boolean confirmDirs, boolean recursiveDirs, java.lang.String cdName)
          Initializes (but does not run) the Movie CD import process
 
Method Summary
 java.lang.String[] getExtensions()
           
protected  int getModule()
          The UI class which will be updated with the results of the import
protected  DCObject parseInformation(java.lang.String filename)
          Parses the source file for information.
 
Methods inherited from class net.sf.dc.processes.cdimport.ImportCDProcess
cancel, getFileSize, getName, run, writeOutput
 
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

ImportMovieCD

public ImportMovieCD(ImportCDDialog ui,
                     java.lang.String sourceDir,
                     boolean confirmDirs,
                     boolean recursiveDirs,
                     java.lang.String cdName)
Initializes (but does not run) the Movie CD import process

Parameters:
ui - used for displaying the progress
sourceDir - directory which is used as source for the import
confirmEachDir - indicates whether for each directory confirmation should be asked if the underlying data of this directory should be read or not.
nameOfCD - cd name (used as the location name)
Method Detail

getExtensions

public java.lang.String[] getExtensions()
Specified by:
getExtensions in class ImportCDProcess

getModule

protected int getModule()
Description copied from class: ImportCDProcess
The UI class which will be updated with the results of the import

Specified by:
getModule in class ImportCDProcess

parseInformation

protected DCObject parseInformation(java.lang.String filename)
Parses the source file for information.

Specified by:
parseInformation in class ImportCDProcess
Parameters:
filename - file to be parsed