com.syncbuilder.app
Class SyncAppSkeleton
java.lang.Object
|
+--com.syncbuilder.app.BasicAppSkeleton
|
+--com.syncbuilder.app.SyncAppSkeleton
- public class SyncAppSkeleton
- extends BasicAppSkeleton
This code can be used as a foundation for all stand-alone synchronization
utilities. It can parse command-line parameters, or it can instead ask
the parameters through a GUI. Once the parameters have been retrieved,
it will establish a connection to the device and invoke the serviceDevice()
method, which you will have to provide. The connection will be closed
either after your code has finished its job, or after it has failed
because of an Exception.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SyncAppSkeleton
public SyncAppSkeleton()
synchronizeDevice
public void synchronizeDevice(Link link)
throws java.lang.Exception
- This method needs to be overwritten by your application.
It will be invoked by the skeleton after all options have been
parsed, and after a connection to the Palm device has been
established.
You should use the supplied Link, and you should not try to
close the connection yourself, since this will be done for you
by the skeleton.
- Parameters:
link - the open Link between the host and the Palm device- Throws:
- java.lang.Exception - anything can go wrong
addFixedOptions
protected void addFixedOptions()
- Overrides:
- addFixedOptions in class BasicAppSkeleton
appMain
public void appMain()
- Overrides:
- appMain in class BasicAppSkeleton
This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.