Code example for Properties

Methods: storeToXML

0
        FileOutputStream out = null;
 
        try 
        { 
            out = new FileOutputStream(persistenceFile);
            prop.storeToXML(out, FILE_COMMENT);
        } 
        finally 
        { 
            if (out != null)
            { 
                try 
                { 
                    out.close();
                } 
                catch (IOException e)
                { 
                    StudioLogger.error("Could not close stream while saving properties. " 
                            + e.getMessage());
                } 
            }