27
27
public class SaveSession {
29
33
private static final String TEMP_PREFIX = "jabref";
30
34
private static final String TEMP_SUFFIX = "save.bib";
31
36
File file, tmp, backupFile;
36
41
public SaveSession(File file, String encoding, boolean backup) throws IOException,
37
42
UnsupportedCharsetException {
39
44
tmp = File.createTempFile(TEMP_PREFIX, TEMP_SUFFIX);
41
47
this.encoding = encoding;
42
48
writer = new VerifyingWriter(new FileOutputStream(tmp), encoding);