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, toString
public EntryFromExternalFileCreator(ExternalFileType externalFileType)
public boolean accept(java.io.File f)
EntryFromFileCreator
To 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.FileFilter
accept
in class EntryFromFileCreator
protected BibtexEntry createBibtexEntry(java.io.File file)
createBibtexEntry
in class EntryFromFileCreator
public java.lang.String getFormatName()
EntryFromFileCreator
The name must be unique.
getFormatName
in class EntryFromFileCreator
null