jSyncManager

org.jSyncManager.Conduit.TextDump
Class TextDump

java.lang.Object
  extended byorg.jSyncManager.API.Conduit.AbstractConduit
      extended byorg.jSyncManager.Conduit.TextDump.TextDump
All Implemented Interfaces:
java.io.Serializable

public final class TextDump
extends AbstractConduit

This jConduit simply dumps the contents of the standard Palm application databases to nicely formatted text files in the users home directory.

Version:
$Revision: 3.5 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>, Last modified by: $Author: yaztromo $.
See Also:
Serialized Form

Field Summary
static java.lang.String DUMP_DIRNAME
          The name for the dump directory.
 
Fields inherited from class org.jSyncManager.API.Conduit.AbstractConduit
CANCEL_BUTTON_PRESSED, configurationPanel, HELP_BUTTON_PRESSED, HIGH_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY, OK_BUTTON_PRESSED, resources
 
Constructor Summary
TextDump()
          Create a new AddressTextDump object.
 
Method Summary
protected  javax.swing.JPanel constructConfigPanel()
          Constructs a configuration panel for this jConduit.
 java.lang.String getOutputdir()
          Getter for property outputdir.
protected  java.lang.String getResourceBundleName()
          Retrieves the name of the class to use as the Conduits Resource Bundle.
 void setOutputdir(java.lang.String outputdir)
          Setter for property outputdir.
 void startSync(ConduitHandler conduitHandler, DLPUserInfo user)
          This method is called when this jConduit is given the opportunity to synchronize.
 
Methods inherited from class org.jSyncManager.API.Conduit.AbstractConduit
doInitialization, getConduitDescription, getConduitName, getConduitResourceBundle, getConfigurationPanel, getPriority, initialize, jConduitDialogActionPerformed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DUMP_DIRNAME

public static final java.lang.String DUMP_DIRNAME
The name for the dump directory.

See Also:
Constant Field Values
Constructor Detail

TextDump

public TextDump()
Create a new AddressTextDump object.

Method Detail

startSync

public void startSync(ConduitHandler conduitHandler,
                      DLPUserInfo user)
               throws NotConnectedException
This method is called when this jConduit is given the opportunity to synchronize.

Specified by:
startSync in class AbstractConduit
Parameters:
conduitHandler - he handle to the active ConduitHandler to use for synchronization.
user - the user information object for the handhelds owner.
Throws:
NotConnectedException - thrown if the connection to the Palm is lost.

getResourceBundleName

protected java.lang.String getResourceBundleName()
Retrieves the name of the class to use as the Conduits Resource Bundle. This method should return a String containing the fully-qualified classname of the class to use for this jConduits textual resources. You may return null from this method, however if you do so you're expected to override the getConduitName and getConduitDescription methods to return suitable data. We suggest using Resource Bundles to ensure that your jConduits can be translated to other languages.

Specified by:
getResourceBundleName in class AbstractConduit
Returns:
the fully-qualified classname of the class to use as this jConduits resource bundle.

constructConfigPanel

protected javax.swing.JPanel constructConfigPanel()
Constructs a configuration panel for this jConduit. If your jConduit requires user supplied configuration information, you may construct a JPanel here to be associated with your jConduit, which GUI applications can use to display to the user prior to synchronization. How this panel is accessed will be application specific. You may return null here to signify that no setting panel is required.

Specified by:
constructConfigPanel in class AbstractConduit
Returns:
a JPanel containing whatever configuration widgets your jConduit requires.

getOutputdir

public java.lang.String getOutputdir()
Getter for property outputdir.

Returns:
Value of property outputdir.

setOutputdir

public void setOutputdir(java.lang.String outputdir)
Setter for property outputdir.

Parameters:
outputdir - New value of property outputdir.

jSyncManager

Copyright (c) 1999 - 2004 Brad BARCLAY and others. All Rights Reserved.