Re: getResourceAsStream() for a folder

2016-10-13 Thread Svetlin Zarev
Oops, I was looking at the code before the fix. Sorry. 2016-10-14 9:07 GMT+03:00 Svetlin Zarev : > Hi Mark! > > > Fixed. > > > Mark > > > What about the inconsistency between getContent() and doGetInputStream() ? > In case of doGetInputStream() when a FileNotFoundException is thrown, the > caller

Re: getResourceAsStream() for a folder

2016-10-13 Thread Svetlin Zarev
Hi Mark! > Fixed. > Mark What about the inconsistency between getContent() and doGetInputStream() ? In case of doGetInputStream() when a FileNotFoundException is thrown, the caller will get a "null" stream. But in case of getContent() the caller will get a byte[] full of zeroes, which will resu

Re: getResourceAsStream() for a folder

2016-10-13 Thread Romain Manni-Bucau
Thanks Mark! Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github | LinkedIn | Tomitriber

Re: getResourceAsStream() for a folder

2016-10-13 Thread Mark Thomas
On 13/10/2016 14:27, Mark Thomas wrote: > On 13/10/2016 13:13, Romain Manni-Bucau wrote: >> @Svetlin: thanks to catch it, was intended for dev@tomcat (thanks gmail to >> have completion ;)) >> >> dev@tomcat: can you check please the original question (in short: >> getResourceAsStream("/some/folder"

Re: getResourceAsStream() for a folder

2016-10-13 Thread Mark Thomas
On 13/10/2016 13:13, Romain Manni-Bucau wrote: > @Svetlin: thanks to catch it, was intended for dev@tomcat (thanks gmail to > have completion ;)) > > dev@tomcat: can you check please the original question (in short: > getResourceAsStream("/some/folder") > returns a stream) Thanks for the heads up

Re: getResourceAsStream() for a folder

2016-10-13 Thread Romain Manni-Bucau
@Svetlin: thanks to catch it, was intended for dev@tomcat (thanks gmail to have completion ;)) dev@tomcat: can you check please the original question (in short: getResourceAsStream("/some/folder") returns a stream) Romain Manni-Bucau @rmannibucau | Blog