Class FormSaver


  • public class FormSaver
    extends Object
    Saves a form model to a JFormDesigner .jfd file.

    This can be used to convert a proprietary form specification to a JFormDesigner .jfd file. First create a FormModel from your form specification, then save the model to a .jfd file.

    Since:
    1.0.1
    • 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 BufferedOutputStream is used to improve performance.

        Parameters:
        model - The form model.
        out - The output stream. Closed when this method returns.
        Throws:
        IllegalArgumentException - If the output stream is null.
        MultiException - If a problem occurred when encoding the form model to XML.