net.datacrow.fileimporters
Class EbookImport

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

public class EbookImport
extends FileImporter

E-Book (Electronical Book) file imporerter.

Author:
Robert Jan van der Waals

Constructor Summary
EbookImport()
           
 
Method Summary
 boolean allowReparsing()
          Indicates if files can be parsed again.
 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, canImportArt, enableActions, getClient, 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

EbookImport

public EbookImport()
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

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.