public class EntryFromExternalFileCreator extends EntryFromFileCreator
| Constructor and Description |
|---|
EntryFromExternalFileCreator(ExternalFileType externalFileType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File f)
To support platform independence, a creator must define what types of
files it accepts on it's own.
|
protected BibtexEntry |
createBibtexEntry(java.io.File file) |
java.lang.String |
getFormatName()
Name of this import format.
|
addEntryDataToEntry, addEntrysToEntry, addFileInfo, appendToField, createEntry, getExternalFileType, toStringpublic EntryFromExternalFileCreator(ExternalFileType externalFileType)
public boolean accept(java.io.File f)
EntryFromFileCreatorTo support platform independence, a creator must define what types of files it accepts on it's own.
Basically, accepting files which end with the file extension that is
described in the nested EntryFromFileCreator.externalFileType would work on windows
systems. This is also the recommended criterion, on which files should be
accepted.
However, defining what types of files this creator accepts, is a property of entry creators, that is left to the user.
accept in interface java.io.FileFilteraccept in class EntryFromFileCreatorprotected BibtexEntry createBibtexEntry(java.io.File file)
createBibtexEntry in class EntryFromFileCreatorpublic java.lang.String getFormatName()
EntryFromFileCreatorThe name must be unique.
getFormatName in class EntryFromFileCreatornull