This is not ready to merge -- however, I wanted to give you a chance to object to the changes.
The approach I took has ended up resulting in a fair amount of fan-out of changes to APIs to accept String pathnames instead of InputStreams. I didn't want to get involved in sniffing bytes from files to decide upon decompression, and I preferred to make more things pass pathnames.
In the process, I removed some tendencies to leak open files and some tendencies to swallow exceptions or just print the backtraces.
If you hate any of this, please let me know. I could certainly chuck all these changes above IOUtils and implement format sniffing instead. To my taste, this is making the code better, but, as always, chacun a son gout.
This is not ready to merge -- however, I wanted to give you a chance to object to the changes.
The approach I took has ended up resulting in a fair amount of fan-out of changes to APIs to accept String pathnames instead of InputStreams. I didn't want to get involved in sniffing bytes from files to decide upon decompression, and I preferred to make more things pass pathnames.
In the process, I removed some tendencies to leak open files and some tendencies to swallow exceptions or just print the backtraces.
If you hate any of this, please let me know. I could certainly chuck all these changes above IOUtils and implement format sniffing instead. To my taste, this is making the code better, but, as always, chacun a son gout.