/* * Created on 14-Sep-2005 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package org.vamsas.test; /** * Toy vamsas client application demonstrating the API. * * @author jimp */ public class ExampleApplication { public static String Usage="ExampleApplication [+]\n is one of :"; private static boolean parseArgs(String args[]) { return true; // incorrect arguments. } public static void main(String[] args) { if ((args.length<=1) || parseArgs(args)) { System.err.print(Usage); } // get IClientFactory // get an Iclient with session data // register an update listener and a close listener. // get document data // do something with data // , update document, or something. // .. // call finalizeClient // { meanwhile, eventHandlers are called to do any saves if need be } // finish } }