- Timestamp:
- 2004-11-25T15:04:45+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r8650 r8670 103 103 104 104 DebugStream.println("deleting classifiers.dat"); 105 File class_file = new File(Utility.getGLIUserFolder() +"classifiers.dat");105 File class_file = new File(Utility.getGLIUserFolder(), "classifiers.dat"); 106 106 if (class_file.exists()) { 107 107 return Utility.delete(class_file); … … 260 260 private void saveClassifiers() { 261 261 try { 262 FileOutputStream file = new FileOutputStream(Utility.getGLIUserFolder() + "classifiers.dat"); 262 File classifiers_dat_file = new File(Utility.getGLIUserFolder(), "classifiers.dat"); 263 FileOutputStream file = new FileOutputStream(classifiers_dat_file); 263 264 ObjectOutputStream out = new ObjectOutputStream(file); 264 265 out.writeObject(library); … … 367 368 private void loadClassifiers() { 368 369 // Attempt to restore the cached file. 370 File classifiers_dat_file = new File(Utility.getGLIUserFolder(), "classifiers.dat"); 369 371 try { 370 FileInputStream file = new FileInputStream( Utility.getGLIUserFolder() + "classifiers.dat");372 FileInputStream file = new FileInputStream(classifiers_dat_file); 371 373 ObjectInputStream input = new ObjectInputStream(file); 372 374 library = (ArrayList) input.readObject(); 373 375 } 374 376 catch (Exception error) { 375 DebugStream.println("Unable to open " + Utility.getGLIUserFolder() + "classifier.dat");377 DebugStream.println("Unable to open " + classifiers_dat_file); 376 378 } 377 379
Note:
See TracChangeset
for help on using the changeset viewer.