jSyncManager

org.jSyncManager.Conduit.TextDump
Class TextDump

java.lang.Object
  |
  +--org.jSyncManager.API.Conduit.AbstractConduit
        |
        +--org.jSyncManager.Conduit.TextDump.TextDump
All Implemented Interfaces:
java.io.Serializable

public 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: 1.14 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>, Last modified by: $Author: yaztromo $.
See Also:
Serialized Form

Field Summary
protected  javax.swing.JCheckBox clean_CB
           
protected  java.io.BufferedWriter csvdos
           
protected  java.io.FileWriter csvfos
           
protected  javax.swing.JList databaseList
           
protected static java.lang.String[] databases
           
protected  javax.swing.JCheckBox dirtyOnly_CB
           
static java.lang.String DUMP_DIRNAME
           
protected  javax.swing.border.TitledBorder dumpPanelBorder
           
protected  javax.swing.JPanel dumpTypePanel
           
protected  java.io.PrintWriter hexdos
           
protected  java.io.FileWriter hexfos
           
protected  java.io.PrintWriter hrfdos
           
protected  java.io.FileWriter hrffos
           
protected  javax.swing.JCheckBox includeSecret_CB
           
protected  javax.swing.JPanel listPanel
           
protected  javax.swing.border.TitledBorder listPanelBorder
           
protected  javax.swing.JPanel optionsPanel
           
protected  javax.swing.border.TitledBorder optionsPanelBorder
           
protected  javax.swing.JCheckBox resetDirty_CB
           
protected  javax.swing.JCheckBox showArchived_CB
           
protected  javax.swing.JCheckBox showDeleted_CB
           
protected  javax.swing.JCheckBox toCSV_CB
           
protected  javax.swing.JCheckBox toHex_CB
           
protected  javax.swing.JCheckBox toHRF_CB
           
protected  javax.swing.JCheckBox toXML_CB
           
protected  java.io.OutputStreamWriter xmldos
           
protected  java.io.FileWriter xmlfos
           
 
Fields inherited from class org.jSyncManager.API.Conduit.AbstractConduit
configurationPanel, HIGH_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY, resources
 
Constructor Summary
TextDump()
          Create a new AddressTextDump object.
 
Method Summary
protected  void closeStreams()
           
protected  javax.swing.JPanel constructConfigPanel()
          Constructs a configuration panel for this jConduit.
protected  java.lang.String getResourceBundleName()
          Retrieves the name of the class to use as the Conduits Resource Bundle.
protected  void openStreams(java.io.OutputStreamWriter out)
           
protected  void openStreams(java.lang.String rootName)
           
 void startSync(ConduitHandler conduitHandler, DLPUserInfo user)
          This method is called when this jConduit is given the opportunity to synchronize.
protected  void writeRecord(DLPRecord record, DLPRecord rawRecord)
           
 
Methods inherited from class org.jSyncManager.API.Conduit.AbstractConduit
getConduitDescription, getConduitName, getConduitResourceBundle, getConfigurationPanel, getHandler, getPriority, setHandler, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

toHRF_CB

protected transient javax.swing.JCheckBox toHRF_CB

toCSV_CB

protected transient javax.swing.JCheckBox toCSV_CB

toXML_CB

protected transient javax.swing.JCheckBox toXML_CB

toHex_CB

protected transient javax.swing.JCheckBox toHex_CB

clean_CB

protected transient javax.swing.JCheckBox clean_CB

showDeleted_CB

protected transient javax.swing.JCheckBox showDeleted_CB

showArchived_CB

protected transient javax.swing.JCheckBox showArchived_CB

dirtyOnly_CB

protected transient javax.swing.JCheckBox dirtyOnly_CB

includeSecret_CB

protected transient javax.swing.JCheckBox includeSecret_CB

resetDirty_CB

protected transient javax.swing.JCheckBox resetDirty_CB

databaseList

protected transient javax.swing.JList databaseList

dumpTypePanel

protected transient javax.swing.JPanel dumpTypePanel

listPanel

protected transient javax.swing.JPanel listPanel

optionsPanel

protected transient javax.swing.JPanel optionsPanel

dumpPanelBorder

protected transient javax.swing.border.TitledBorder dumpPanelBorder

listPanelBorder

protected transient javax.swing.border.TitledBorder listPanelBorder

optionsPanelBorder

protected transient javax.swing.border.TitledBorder optionsPanelBorder

hrffos

protected transient java.io.FileWriter hrffos

hrfdos

protected transient java.io.PrintWriter hrfdos

csvfos

protected transient java.io.FileWriter csvfos

csvdos

protected transient java.io.BufferedWriter csvdos

xmlfos

protected transient java.io.FileWriter xmlfos

xmldos

protected transient java.io.OutputStreamWriter xmldos

hexfos

protected transient java.io.FileWriter hexfos

hexdos

protected transient java.io.PrintWriter hexdos

DUMP_DIRNAME

public static final java.lang.String DUMP_DIRNAME

databases

protected static java.lang.String[] databases
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.
Overrides:
startSync in class AbstractConduit
Parameters:
conduitHandler - he handle to the active ConduitHandler to use for synchronization.
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.
Overrides:
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.
Overrides:
constructConfigPanel in class AbstractConduit
Returns:
a JPanel containing whatever configuration widgets your jConduit requires.

writeRecord

protected void writeRecord(DLPRecord record,
                           DLPRecord rawRecord)

openStreams

protected void openStreams(java.lang.String rootName)
                    throws java.io.IOException

openStreams

protected void openStreams(java.io.OutputStreamWriter out)
                    throws java.io.FileNotFoundException

closeStreams

protected void closeStreams()
                     throws java.io.IOException

jSyncManager

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