/** * Saves this properties to the given file. */ public void save(File file) throws NestedIOException { Props.save(this, file); } }
/** * Saves this properties to file. * * @throws IllegalStateException if this properties not load from file. */ public void save() throws IllegalStateException,NestedIOException { if(null == file){ throw new IllegalStateException("Cannot save, this properties not load from file"); } Props.save(this, file); }