/** * <p/> * Write the tag contained in the audioFile in the actual file on the disk. * </p> * * @param f The AudioFile to be written * @throws CannotWriteException If the file could not be written/accessed, the extension * wasn't recognized, or other IO error occurred. */ public static void write(AudioFile f) throws CannotWriteException { getDefaultAudioFileIO().writeFile(f); }
/** * <p/> * Write the tag contained in the audioFile in the actual file on the disk. * </p> * * @param f The AudioFile to be written * @throws CannotWriteException If the file could not be written/accessed, the extension * wasn't recognized, or other IO error occurred. */ public static void write(AudioFile f) throws CannotWriteException { getDefaultAudioFileIO().writeFile(f); }
/** * * Write the tag contained in the audioFile in the actual file on the disk. * * * @param f The AudioFile to be written * @throws NoWritePermissionsException if the file could not be written to due to file permissions * @throws CannotWriteException If the file could not be written/accessed, the extension * wasn't recognized, or other IO error occurred. */ public static void write(AudioFile f) throws CannotWriteException { getDefaultAudioFileIO().writeFile(f,null); }
/** * * Write the tag contained in the audioFile in the actual file on the disk. * * * @param f The AudioFile to be written * @param targetPath The AudioFile path to which to be written without the extension. Cannot be null * @throws NoWritePermissionsException if the file could not be written to due to file permissions * @throws CannotWriteException If the file could not be written/accessed, the extension * wasn't recognized, or other IO error occurred. */ public static void writeAs(AudioFile f, String targetPath) throws CannotWriteException { if (targetPath == null || targetPath.isEmpty()) { throw new CannotWriteException("Not a valid target path: " + targetPath); } getDefaultAudioFileIO().writeFile(f,targetPath); }