Restructured how events were being handled to clean up the mess
This commit is contained in:
@@ -35,11 +35,8 @@ import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.UUID;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.xml.sax.SAXException;
|
||||
import com.mpatric.mp3agic.ID3v2;
|
||||
import com.mpatric.mp3agic.InvalidDataException;
|
||||
import com.mpatric.mp3agic.Mp3File;
|
||||
import com.mpatric.mp3agic.UnsupportedTagException;
|
||||
|
||||
@Component
|
||||
public class Mp3UploadHandler {
|
||||
@@ -74,13 +71,4 @@ public class Mp3UploadHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String args[]) throws IOException, SAXException, UnsupportedTagException, InvalidDataException {
|
||||
String file = "E:\\Music2\\AronChupa\\01 I'm an Albatraoz.mp3";
|
||||
Path path = Paths.get(file);
|
||||
|
||||
Mp3UploadHandler fuh = new Mp3UploadHandler();
|
||||
System.out.println(fuh.parse(path));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user