您的位置:首页 > 编程语言 > Java开发

欢迎使用CSDN-markdown编辑器

2017-03-13 15:41 267 查看
这里的Enumeration的数据源来自哪里,这个暂时不清楚,标记以后解答

private void store0(BufferedWriter bw, String comments, boolean escUnicode)

throws IOException

{

if (comments != null) {

writeComments(bw, comments);

}

bw.write("#" + new Date().toString());

bw.newLine();

synchronized (this) {

for (Enumeration e = keys(); e.hasMoreElements();) {

String key = (String)e.nextElement();

String val = (String)get(key);

key = saveConvert(key, true, escUnicode);

/* No need to escape embedded and trailing spaces for value, hence

* pass false to flag.

*/

val = saveConvert(val, false, escUnicode);

bw.write(key + "=" + val);

bw.newLine();

}

}

bw.flush();

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  java 源码 疑问