public class FileActions
extends java.lang.Object
Constructor and Description |
---|
FileActions() |
Modifier and Type | Method and Description |
---|---|
static java.io.Reader |
getReader(java.lang.String name)
This method attempts to get a Reader for the file path given, either by
loading it as a resource (from within jar), or as a normal file.
|
static java.util.List<BibtexEntry> |
getSortedEntries(BibtexDatabase database,
java.util.Set<java.lang.String> keySet,
boolean isSaveOperation) |
static SaveSession |
saveDatabase(BibtexDatabase database,
MetaData metaData,
java.io.File file,
JabRefPreferences prefs,
boolean checkSearch,
boolean checkGroup,
java.lang.String encoding,
boolean suppressBackup)
Saves the database to file.
|
static SaveSession |
savePartOfDatabase(BibtexDatabase database,
MetaData metaData,
java.io.File file,
JabRefPreferences prefs,
BibtexEntry[] bes,
java.lang.String encoding)
Saves the database to file, including only the entries included in the
supplied input array bes.
|
public static SaveSession saveDatabase(BibtexDatabase database, MetaData metaData, java.io.File file, JabRefPreferences prefs, boolean checkSearch, boolean checkGroup, java.lang.String encoding, boolean suppressBackup) throws SaveException
SaveException
public static SaveSession savePartOfDatabase(BibtexDatabase database, MetaData metaData, java.io.File file, JabRefPreferences prefs, BibtexEntry[] bes, java.lang.String encoding) throws SaveException
SaveException
public static java.io.Reader getReader(java.lang.String name) throws java.io.IOException
java.io.IOException
public static java.util.List<BibtexEntry> getSortedEntries(BibtexDatabase database, java.util.Set<java.lang.String> keySet, boolean isSaveOperation)