Can any body explain me what is happening in this code ...
thanks a lot .
posted 11 years ago
Why don't you try out part of the code in a simple test class just to get an idea of what it's doing?
It looks like it's checking to see if a file exists, and if so, it returns an InputStream to it. If not, it starts trimming any forward or backslashes off of the front of the String. When it's done with that, it gets the ClassLoader to try to find the resource and return an InputStream to it.