/** * <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); }
/** * <p/> * Delete the tag, if any, contained in the given file. * </p> * * @param f The file where the tag will be deleted * @throws CannotWriteException If the file could not be written/accessed, the extension * wasn't recognized, or other IO error occurred. * @throws org.jaudiotagger.audio.exceptions.CannotReadException */ public static void delete(AudioFile f) throws CannotReadException, CannotWriteException { getDefaultAudioFileIO().deleteTag(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); }
/** * * Delete the tag, if any, contained in the given file. * * * @param f The file where the tag will be deleted * @throws org.jaudiotagger.audio.exceptions.CannotWriteException If the file could not be written/accessed, the extension * wasn't recognized, or other IO error occurred. * @throws org.jaudiotagger.audio.exceptions.CannotReadException */ public static void delete(AudioFile f) throws CannotReadException, CannotWriteException { getDefaultAudioFileIO().deleteTag(f); }
/** * <p/> * Delete the tag, if any, contained in the given file. * </p> * * @param f The file where the tag will be deleted * @throws CannotWriteException If the file could not be written/accessed, the extension * wasn't recognized, or other IO error occurred. * @throws org.jaudiotagger.audio.exceptions.CannotReadException * */ public static void delete(AudioFile f) throws CannotReadException, CannotWriteException { getDefaultAudioFileIO().deleteTag(f); }
/** * <p/> * Read the tag contained in the given file. * </p> * * @param f The file to read. * @return The AudioFile with the file tag and the file encoding info. * @throws CannotReadException If the file could not be read, the extension wasn't * recognized, or an IO error occurred during the read. * @throws org.jaudiotagger.tag.TagException * @throws org.jaudiotagger.audio.exceptions.ReadOnlyFileException * @throws java.io.IOException * @throws org.jaudiotagger.audio.exceptions.InvalidAudioFrameException */ public static AudioFile read(File f) throws CannotReadException, IOException, TagException, ReadOnlyFileException, InvalidAudioFrameException { return getDefaultAudioFileIO().readFile(f); }
/** * * Read the tag contained in the given file. * * * @param f The file to read. * @return The AudioFile with the file tag and the file encoding info. * @throws org.jaudiotagger.audio.exceptions.CannotReadException If the file could not be read, the extension wasn't * recognized, or an IO error occurred during the read. * @throws org.jaudiotagger.tag.TagException * @throws org.jaudiotagger.audio.exceptions.ReadOnlyFileException * @throws java.io.IOException * @throws org.jaudiotagger.audio.exceptions.InvalidAudioFrameException */ public static AudioFile readMagic(File f) throws CannotReadException, IOException, TagException, ReadOnlyFileException, InvalidAudioFrameException { return getDefaultAudioFileIO().readFileMagic(f); }
/** * * Read the tag contained in the given file. * * * @param f The file to read. * @return The AudioFile with the file tag and the file encoding info. * @throws org.jaudiotagger.audio.exceptions.CannotReadException If the file could not be read, the extension wasn't * recognized, or an IO error occurred during the read. * @throws org.jaudiotagger.tag.TagException * @throws org.jaudiotagger.audio.exceptions.ReadOnlyFileException * @throws java.io.IOException * @throws org.jaudiotagger.audio.exceptions.InvalidAudioFrameException */ public static AudioFile read(File f) throws CannotReadException, IOException, TagException, ReadOnlyFileException, InvalidAudioFrameException { return getDefaultAudioFileIO().readFile(f); }
/** * * Read the tag contained in the given file. * * * @param f The file to read. * @param ext The extension to be used. * @return The AudioFile with the file tag and the file encoding info. * @throws org.jaudiotagger.audio.exceptions.CannotReadException If the file could not be read, the extension wasn't * recognized, or an IO error occurred during the read. * @throws org.jaudiotagger.tag.TagException * @throws org.jaudiotagger.audio.exceptions.ReadOnlyFileException * @throws java.io.IOException * @throws org.jaudiotagger.audio.exceptions.InvalidAudioFrameException */ public static AudioFile readAs(File f,String ext) throws CannotReadException, IOException, TagException, ReadOnlyFileException, InvalidAudioFrameException { return getDefaultAudioFileIO().readFileAs(f,ext); }
/** * <p/> * Read the tag contained in the given file. * </p> * * @param f The file to read. * @return The AudioFile with the file tag and the file encoding info. * @throws CannotReadException If the file could not be read, the extension wasn't * recognized, or an IO error occurred during the read. * @throws org.jaudiotagger.tag.TagException * * @throws org.jaudiotagger.audio.exceptions.ReadOnlyFileException * * @throws java.io.IOException * @throws org.jaudiotagger.audio.exceptions.InvalidAudioFrameException * */ public static AudioFile read(File f) throws CannotReadException, IOException, TagException, ReadOnlyFileException, InvalidAudioFrameException { return getDefaultAudioFileIO().readFile(f); }
/** * * 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); }