Java读取Properties文件的六种方法(转)
2011-07-12 00:00
756 查看
1.使用java.util.Properties类的load()方法:
2.使用java.util.ResourceBunld类的getBundle()方法:
3.使用PropertyResourceBundle
4.使用Class类的getResourceAsStream(String name)
5.使用class.getClassLoader()所得到的java.lang.ClassLoader的getResourceAsStream()方法
6.使用java.lang.ClassLoader类的getSystemResourceAsStream()静态方法
详情请参考: http://tristan-wang.iteye.com/blog/647729
2.使用java.util.ResourceBunld类的getBundle()方法:
3.使用PropertyResourceBundle
4.使用Class类的getResourceAsStream(String name)
5.使用class.getClassLoader()所得到的java.lang.ClassLoader的getResourceAsStream()方法
6.使用java.lang.ClassLoader类的getSystemResourceAsStream()静态方法
详情请参考: http://tristan-wang.iteye.com/blog/647729
相关文章推荐
- Java项目中读取properties文件,以及六种获取路径的方法
- 用Java读取Properties文件六种方法
- Java读取properties文件的六种方法
- [转]Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- java读取Properties文件六种方法
- Java读取Properties文件的六种方法
- java读取properties文件的六种方法
- Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- [转]Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法
- Java读取Properties文件的六种方法