Package org.socialmusicdiscovery.server.plugins.mediaimport.filesystem.tagreader

Examples of org.socialmusicdiscovery.server.plugins.mediaimport.filesystem.tagreader.Mp3TagReader


     * @return Tag data read from the file
     * @throws IOException If tags can't be read of file can't be accessed
     */
    TrackData scanFile(File file) throws IOException {
        String separatorCharacters = getConfiguration().getStringParameter("separatorCharacters");
        TagReader[] tagReaders = {new FlacTagReader(separatorCharacters), new Mp3TagReader(separatorCharacters)};
        for (TagReader tagReader : tagReaders) {
            TrackData data = tagReader.getTrackData(file);
            if (data != null) {
                data.setLastModified(file.lastModified());
                return data;
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.plugins.mediaimport.filesystem.tagreader.Mp3TagReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.