Пример #1
0
 public void saveChanges() {
   try {
     mp3File.save();
   } catch (IOException | TagException e) {
     throw new RuntimeException(e);
   }
 }
Пример #2
0
 /**
  * Overridden for compatibility with merged code
  *
  * @throws CannotWriteException
  */
 public void commit() throws CannotWriteException {
   try {
     save();
   } catch (IOException ioe) {
     throw new CannotWriteException(ioe);
   } catch (TagException te) {
     throw new CannotWriteException(te);
   }
 }
Пример #3
0
 /**
  * Saves the tags in this dataType to the file referred to by this dataType.
  *
  * @throws IOException on any I/O error
  * @throws TagException on any exception generated by this library.
  */
 public void save() throws IOException, TagException {
   save(this.file);
 }