JFormDesigner 5.0.4 Runtime API

com.jformdesigner.runtime
Class FormSaver

java.lang.Object
  extended by com.jformdesigner.runtime.FormSaver

public class FormSaver
extends java.lang.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 Summary
static void save(FormModel model, java.io.OutputStream out)
          Saves a form model to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

save

public static void save(FormModel model,
                        java.io.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:
java.lang.IllegalArgumentException - If the output stream is null.
MultiException - If a problem occurred when encoding the form model to XML.

JFormDesigner 5.0.4 Runtime API

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.