LibreOffice Module xmerge (master) 1
Public Member Functions | List of all members
org.openoffice.xmerge.ConverterFactory Class Reference

Factory that provides access to Convert objects, which are used to do a conversion. More...

Public Member Functions

Convert getConverter (String mimeTypeIn, String mimeTypeOut)
 Returns the Convert object that converts the specified device/office mime type conversion. More...
 
Convert getConverter (ConverterInfo ci, boolean toOffice)
 Returns the Convert object that is described by the ConverterInfo parameter. More...
 

Detailed Description

Factory that provides access to Convert objects, which are used to do a conversion.

The ConvertFactory does this via the ConvertInfoMgr which maintains a list of which Convert objects are available and their capabilities.

See also
Convert
org.openoffice.xmerge.util.registry.ConverterInfoMgr

Definition at line 35 of file ConverterFactory.java.

Member Function Documentation

◆ getConverter() [1/2]

Convert org.openoffice.xmerge.ConverterFactory.getConverter ( ConverterInfo  ci,
boolean  toOffice 
)
inline

Returns the Convert object that is described by the ConverterInfo parameter.

Parameters
ciThe ConverterInfo describing the converter.
toOfficetrue to convert to office, false to convert to device.
Returns
The Convert object

Definition at line 80 of file ConverterFactory.java.

◆ getConverter() [2/2]

Convert org.openoffice.xmerge.ConverterFactory.getConverter ( String  mimeTypeIn,
String  mimeTypeOut 
)
inline

Returns the Convert object that converts the specified device/office mime type conversion.

If there are multiple Converter objects registered that support this conversion, only the first is returned.

Parameters
mimeTypeInThe mime input type.
mimeTypeOutThe mime output type.
Returns
The first Convert object that supports the specified conversion.

Definition at line 50 of file ConverterFactory.java.

References org.openoffice.xmerge.util.registry.ConverterInfoMgr.findConverterInfo(), org.openoffice.xmerge.ConverterFactory.getConverter(), and org.openoffice.xmerge.util.registry.ConverterInfo.isValidOfficeType().

Referenced by XMergeBridge._XMergeBridge.convert(), org.openoffice.xmerge.util.ActiveSyncDriver.Convert(), org.openoffice.xmerge.test.Driver.doConversion(), and org.openoffice.xmerge.ConverterFactory.getConverter().


The documentation for this class was generated from the following file: