[quote]Changes are committed now.
It’s good that you said this Yuri, because I wanted to ask how to handle format detection with InputStreams anyway. Don’t know why I didn’t do it. I added also some documentation and error handling. If it is not correct please tell me (via private message if it’s a specific thing). Code formatting, error handling and logging conventions would be useful in my opinion.
[/quote]
I agree, code formatting error handling and logging convenstions would be a very good thing. I tried to get a discussion on the topic ages ago in a thread but never really got anywhere.
The code works - but some nitpicking:
-
If the file is not found, can a FileNotFoundException be thrown with a message rather than a NPE? If not FNFE - then some other checked exception because this is really something that needs catching!
-
I notice that the code dosn’t attempt to load the files relative to the working directory but only the class path. I guess this isn’t a large problem but dual support would be nice.
I wounder if we should setup the sounds like the textures with a register path type of idea?
Just my $0.02
Will.
