equal
deleted
inserted
replaced
73 System.out.println("testLoadAndStore, encoding=" + encoding); |
73 System.out.println("testLoadAndStore, encoding=" + encoding); |
74 |
74 |
75 Properties props = new Properties(); |
75 Properties props = new Properties(); |
76 props.put("k1", "foo"); |
76 props.put("k1", "foo"); |
77 props.put("k2", "bar"); |
77 props.put("k2", "bar"); |
|
78 props.put("k3", "\\u0020\\u0391\\u0392\\u0393\\u0394\\u0395\\u0396\\u0397"); |
|
79 props.put("k4", "\u7532\u9aa8\u6587"); |
|
80 props.put("k5", "<java.home>/lib/jaxp.properties"); |
78 |
81 |
79 ByteArrayOutputStream out = new ByteArrayOutputStream(); |
82 ByteArrayOutputStream out = new ByteArrayOutputStream(); |
80 props.storeToXML(out, null, encoding); |
83 props.storeToXML(out, null, encoding); |
81 |
84 |
82 Properties p = new Properties(); |
85 Properties p = new Properties(); |