|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.fileimporters.FileImporter
net.datacrow.fileimporters.MusicAlbumImporter
public class MusicAlbumImporter
Music file importer. Creates music album for music file collections.
Field Summary | |
---|---|
protected java.util.Collection<DcObject> |
albums
|
Constructor Summary | |
---|---|
MusicAlbumImporter()
|
Method Summary | |
---|---|
protected void |
afterImport()
Called after finishing the whole parsing process. |
protected void |
afterParse(DcObject dco)
Called after parsing a single file. |
void |
beforeParse()
To be executed before a file is parsed. |
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. |
void |
showUI()
Opens the import dialog. |
Methods inherited from class net.datacrow.fileimporters.FileImporter |
---|
addMessage, allowDirectoryRegistration, allowReparsing, enableActions, getClient, getContainer, getItemPickMode, getModule, getName, getRegion, getSearchMode, getServer, getSupportedFileTypes, initialize, initProgressBar, isCancelled, isReparseFiles, parse, parse, setClient, setImages, updateProgressBar, useOnlineService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Collection<DcObject> albums
Constructor Detail |
---|
public MusicAlbumImporter()
Method Detail |
---|
public java.lang.String[] getDefaultSupportedFileTypes()
getDefaultSupportedFileTypes
in class FileImporter
public void beforeParse()
FileImporter
beforeParse
in class FileImporter
public void showUI()
showUI
in class FileImporter
MusicFileImportDialog
public boolean canImportArt()
FileImporter
canImportArt
in class FileImporter
protected void afterParse(DcObject dco)
FileImporter
afterParse
in class FileImporter
protected void afterImport()
FileImporter
afterImport
in class FileImporter
public DcObject parse(java.lang.String filename, int directoryUsage)
FileImporter
parse
in class FileImporter
filename
- The file to check.directoryUsage
- A free interpretation of the directory usage.
Depends on a specific implementation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |