net.datacrow.fileimporters
Class MovieImporter

java.lang.Object
  extended by net.datacrow.fileimporters.FileImporter
      extended by net.datacrow.fileimporters.MovieImporter
All Implemented Interfaces:
ISynchronizerClient

public class MovieImporter
extends FileImporter

Importer for movie files.

Author:
Robert Jan van der Waals

Constructor Summary
MovieImporter()
           
 
Method Summary
 boolean allowReparsing()
          Indicates if files can be parsed again.
 boolean canImportArt()
          Indicates if local art can be used.
 java.lang.String[] getDefaultSupportedFileTypes()
           
 DcObject parse(java.lang.String filename, int directoryUsage)
          Parses a file and extracts its information.
 
Methods inherited from class net.datacrow.fileimporters.FileImporter
addMessage, afterImport, afterParse, allowDirectoryRegistration, beforeParse, enableActions, getClient, getContainer, getItemPickMode, getModule, getName, getRegion, getSearchMode, getServer, getSupportedFileTypes, initialize, initProgressBar, isCancelled, isReparseFiles, parse, parse, setClient, setImages, showUI, updateProgressBar, useOnlineService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovieImporter

public MovieImporter()
Method Detail

getDefaultSupportedFileTypes

public java.lang.String[] getDefaultSupportedFileTypes()
Specified by:
getDefaultSupportedFileTypes in class FileImporter

allowReparsing

public boolean allowReparsing()
Description copied from class: FileImporter
Indicates if files can be parsed again. This useful when you know that the information of the file can be changed (such as the ID tag content of MP3 files).

Overrides:
allowReparsing in class FileImporter
Returns:
false

canImportArt

public boolean canImportArt()
Description copied from class: FileImporter
Indicates if local art can be used.

Overrides:
canImportArt in class FileImporter
Returns:
false

parse

public DcObject parse(java.lang.String filename,
                      int directoryUsage)
Description copied from class: FileImporter
Parses a file and extracts its information.

Specified by:
parse in class FileImporter
Parameters:
filename - The file to check.
directoryUsage - A free interpretation of the directory usage. Depends on a specific implementation.