/** * * 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); }