I know how to get the inputstream for a given classpath resource, read from the inputstream until i reach the end, but it looks like a very common prob