org.openmobileis.synchro.openmsp.client.db.DBImportFileCoder Class Reference

List of all members.


Detailed Description

Title: OpenMobileIS project source
Description: Utility methode to encode and decode rows for the synchro protocol.

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.

Definition at line 42 of file DBImportFileCoder.java.


Public Member Functions

char[] encodeData (char action, String[] rowData) throws OpenMSPException
 encode the specified row data and action in a char array that can be decoded.
void decodeFileData (String filename, DecodedRowListener listener) throws OpenMSPException
 decode the specified file and notify the specified listener when a row is decoded.
String[] decodeData (String data)
 decode the specified data into a String array.

Member Function Documentation

char [] org.openmobileis.synchro.openmsp.client.db.DBImportFileCoder.encodeData ( char  action,
String[]  rowData 
) throws OpenMSPException

encode the specified row data and action in a char array that can be decoded.

String row data must be well formated with cote delimiter :ex tutu => 'tutu'

Definition at line 75 of file DBImportFileCoder.java.

String [] org.openmobileis.synchro.openmsp.client.db.DBImportFileCoder.decodeData ( String  data  ) 

decode the specified data into a String array.

The specified String is the string encoded by the encode method. The action specified in the string is not return. if an error occurs return null;

Definition at line 272 of file DBImportFileCoder.java.

References org.openmobileis.common.util.collection.Array.add(), org.openmobileis.common.util.collection.Array.size, and org.openmobileis.common.util.collection.Array.toArray().


The documentation for this class was generated from the following file:
Generated on Mon Jan 14 17:29:55 2008 for OpenMobileIS by  doxygen 1.5.4