To create a custom data handler, you extend the data-handler base class (DataHandler) to create your own data-handler class. The DataHandler class contains methods that perform the conversions (string-to-business-object and business-object-to-string), as well as utility methods to assist in development. The EDK contains stub code and makefiles for a custom data handler. The stub file contains Java code that defines an empty class listing all the methods that you must implement. You can use the stub file as a template to generate a custom data handler.
To create a data handler source file using the stub file:
The stub file resides in the DevelopmentKits\edk\DataHandler subdirectory in the product directory. It includes import statements that import the data handler package com.crossworlds.DataHandlers. It also imports some classes from the Java Connector Development Kit.
For example, the following line extends the DataHandler class to create a custom data-handler class called HtmlDataHandler:
public class HtmlDataHandler extends DataHandler