net.datacrow.fileimporters
Class SoftwareImporter

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

public class SoftwareImporter
extends FileImporter

Imports software files.

Author:
Robert Jan van der Waals

Constructor Summary
SoftwareImporter()
           
 
Method Summary
 boolean allowDirectoryRegistration()
          Indicates if a directory can be used instead of a file.
 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, 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

SoftwareImporter

public SoftwareImporter()
Method Detail

getDefaultSupportedFileTypes

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

allowDirectoryRegistration

public boolean allowDirectoryRegistration()
Description copied from class: FileImporter
Indicates if a directory can be used instead of a file.

Overrides:
allowDirectoryRegistration in class FileImporter
Returns:
false

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.