首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

java读取属性资料的方法

2012-12-23 
java读取属性文件的方法主要有两种:一是使用Class的getResourceAsStream方法:InputStream in context.ge

java读取属性文件的方法

主要有两种:

一是使用Class的getResourceAsStream方法:

InputStream in = context.getResourceAsStream(path);Properties p = new Properties();p.load(in);
?

?

?

?

?

?

热点排行