private static InputStream findStream ( String filename ) { InputStream streamOnClass = JDefaultAddress . class . getResourceAsStream ( filename ) ; if ( streamOnClass != null ) { return streamOnClass ; } InputStream is = JDefaultAddress . class . getClassLoader ( ) . getResourceAsStream ( filename ) ; return is ; }
Finds the InputStream of a file in a Jar