Package com.jformdesigner.runtime
Class FormSaver
- java.lang.Object
-
- com.jformdesigner.runtime.FormSaver
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregisterPersistenceDelegates(Map<String,PersistenceDelegate> map)static voidsave(FormModel model, OutputStream out)Saves a form model to the given output stream.
-
-
-
Method Detail
-
save
public static void save(FormModel model, OutputStream out) throws MultiException
Saves a form model to the given output stream. Use this method if you want save a form e.g. to a database.A
BufferedOutputStreamis used to improve performance.- Parameters:
model- The form model.out- The output stream. Closed when this method returns.- Throws:
IllegalArgumentException- If the output stream isnull.MultiException- If a problem occurred when encoding the form model to XML.
-
registerPersistenceDelegates
public static void registerPersistenceDelegates(Map<String,PersistenceDelegate> map)
- Since:
- 6.0
-
-