1 需求
2 接口
Class Properties
java.lang.Object
java.util.Dictionary
java.util.Hashtable
- Field Detail
- ·protected Properties defaults
- Constructor Detail
- public Properties()
- public Properties(Properties defaults)
- Method Detail
- public Object setProperty(String key, String value)
- public void load(Reader reader) throws IOException
- public void load(InputStream inStream) throws IOException
- public void store(Writer writer, String comments) throws IOException
- public void store(OutputStream out, String comments) throws IOException
- public void loadFromXML(InputStream in) throws IOException, InvalidPropertiesFormatException
- public void storeToXML(OutputStream os, String comment) throws IOException
- public void storeToXML(OutputStream os, String comment, String encoding) throws IOException
- public String getProperty(String key)
- public String getProperty(String key, String defaultValue)
- public Enumeration> propertyNames()
- public Set
stringPropertyNames() - public void list(PrintStream out)
- public void list(PrintWriter out)
3 示例代码
4 参考资料
269.Apache基金会和第三方jar包_哔哩哔哩_bilibili
270.Commons FileUtils拷贝文件_哔哩哔哩_bilibili
271.try-with-resource语句块_哔哩哔哩_bilibili
272.硬编码的解决方案——配置文件的引入_哔哩哔哩_bilibili
273.properties文件的使用_哔哩哔哩_bilibili
274.类加载器方式实现配置文件工具类_哔哩哔哩_bilibili
275.Jar包的导出和内容回顾_哔哩哔哩_bilibili



