Using a Converter

File Converter Framework provides APIs to list and search for converters. It also provides an observer interface through which the progress and success or failure of the conversion can be reported.

Introduction

To convert a file or stream-based object from one format to another, you must obtain a suitable converter from the converter framework, request the converter to perform the conversion, and clean up. You can optionally supply a conversion observer.

Note: A converter handles the relevant source and target data types. It can handle files or streams or both, so its capabilities must be checked.

Procedure

  1. Get a converter.

  2. Request for conversions.

  3. Write a conversion observer.

Related concepts