The UDTT formatter manipulates data object through an interface DataAdapter. The toolkit provides JavaDataAdapter (adapter for Java data object) and BTTContextDataAdapter (adapter for BTTContext data object). You can extend your own adapter to support other kinds of data object, for example, SDODataAdapter (adapter for Service Data Object), HashMapDataAdapter (adapter for HashMap), and so on.
The Formatting a JavaBean into binary messagedescribes how to handle Java data object with JavaDataAdapter. This section describes how to handle BTTContext and BTTDataElement with BTTContextDataAdapter and BTTDataElementDataAdapter, and the instructions on how to support more kinds of data object by implementing your own DataAdapter are also provided.