コード例 #1
0
 /**
  * Save F1MapEntries to disk. Uses the libf1 library to save all F1Entry objects to disk.
  *
  * @param file
  */
 @Override
 public void save() {
   try {
     F1Mapper.saveMapFile(device, mapFile);
   } catch (FileNotFoundException ex) {
     Logger.getLogger(F1Provider.class.getName()).log(Level.WARN, ex);
     StatusDisplayer.getDefault().setStatusText(ex.getMessage());
   }
 }
コード例 #2
0
 /**
  * Read F1MapEntries from disk. Uses the libf1 library to fetch mapping entries and converts them
  * into F1Entry objects. These objects are placed in the Lookup for other modules to use.
  *
  * @param file
  */
 @Override
 public void load() {
   device = F1Mapper.loadMapFile(mapFile);
   reload();
 }