properties.store (OutputStream out, String comments)
with suitable load (InputStream) method to load the Properties table format , write this Properties table in the property list ( key and element pairs ) to the output stream .
What
there's String comments in the end should be written ah
------ Solution ------------------------------------ --------
" If comments variable non- null, the first written ASCII # character , comments, strings, and a line separator output stream. Thus, the comments can be used as an identifying comment . "
comments this is a comment , do you want to write notes into the properties, pass a null good
------ Solution ----------------- ---------------------------
upstairs in saying that , for example, you have
p.save (fos, "haha"); beginning
you that fos deposited into the corresponding file is the first line of the comment : # haha
The # haha When it is p.load (fis) read is not read .
------ For reference only -------------------------------------- -
String this does not have to tell you · ·
------ For reference only ------------------ ---------------------
void save (OutputStream out, String comments)
obsolete. If I / O error occurs while saving the property list , this method does not throw an IOException. The preferred method is to save the property list by store (OutputStream out, String comments) method or storeToXML (OutputStream os, String comment) methods.
Do not tangle .
------ For reference only -------------------------------------- -
feel Lz I encountered the same problem with it . When I write is written in the memory , and did not change the original value in the file . . . Tangle . . We seek to help solve
------ For reference only ---------------------------------- -----
encountered the same problem , trying to solve ......
------ For reference only -------------------- -------------------
flow did not close it . close () it, or flush ()
没有评论:
发表评论