Code example for Properties

Methods: putAll, store

0
 
        @Override 
		public void endDocument() throws SAXException { 
            // build html web page 
            try { 
                Properties props = new Properties();
                File f = new File(baseWorkingDir, ATTACH_PROP_FILE);
                FileOutputStream fos = new FileOutputStream(f);
                props.putAll(filesAttachement);
                props.store(fos, "Liste of the file attachement");
                fos.close();
            } catch (Exception e) {
                throw new SAXException(e);
            } 
        } 
    } 
 
    public class HtmlFileBrowser extends BrowsePatchHandler { 
        private boolean listOp;
 
        public HtmlFileBrowser(String workingDir, boolean listOp) {