有关properties输入流的有关问题

有关properties输入流的问题对于properties文件staic{.........InputStreamclassName.class.getClassLoad

有关properties输入流的问题
对于properties文件
staic{
        .........
      InputStream   =
                className.class.getClassLoader().
                getResourceAsStream( "path ");
      ..........
}
为什么要用这种方式获得流,不是很懂,有人能帮我分析下吗?谢了!


[解决办法]
因为你的properties文件放在类路径上,所以可以使用这种方式从类路径上查找资源。