Restructured how events were being handled to clean up the mess

This commit is contained in:
Isaac Parenteau
2020-01-01 00:22:02 -06:00
parent 52c8253aa0
commit c8260444bb
10 changed files with 540 additions and 217 deletions

View File

@@ -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));
}
}