PossibleConversions
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject
public final class PossibleConversions extends ValueObject
Represents a mapping what conversion pairs are supported for specific source file format
| Constructor | Description |
|---|---|
| PossibleConversions(FileType source) | Creates possible conversion list for specified source file format |
| Field | Description |
|---|---|
| NULL |
| Method | Description |
|---|---|
| getLoadOptions() | Predefined load options which could be used to convert from current type |
| getAll() | All target file types and primary/secondary flag |
| getTargetConversion(FileType target) | Returns target conversion for specified target file type |
| getTargetConversion(String extension) | |
| getPrimary() | Primary target file types |
| getSecondary() | Secondary target file types |
| add(ConversionPair pair) | Add conversion pair |
| forTarget(FileType target) | Find conversion pair in current list for target file type |
| getSource() | Source file formats |
public PossibleConversions(FileType source)
Creates possible conversion list for specified source file format
Parameters:
| Parameter | Type | Description |
|---|---|---|
| source | FileType | source file type |
public static final PossibleConversions NULL
public LoadOptions getLoadOptions()
Predefined load options which could be used to convert from current type
Returns: LoadOptions - load options
public Iterable<TargetConversion> getAll()
All target file types and primary/secondary flag
Returns: java.lang.Iterable<com.groupdocs.conversion.contracts.TargetConversion> - Iterable of TargetConversion
public TargetConversion getTargetConversion(FileType target)
Returns target conversion for specified target file type
Parameters:
| Parameter | Type | Description |
|---|---|---|
| target | FileType | target file type |
Returns: TargetConversion - conversions
public TargetConversion getTargetConversion(String extension)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| extension | java.lang.String |
Returns: TargetConversion
public Iterable<FileType> getPrimary()
Primary target file types
Returns: java.lang.Iterable<com.groupdocs.conversion.filetypes.FileType> - primary target file types
public Iterable<FileType> getSecondary()
Secondary target file types
Returns: java.lang.Iterable<com.groupdocs.conversion.filetypes.FileType> - secondary target file types
public void add(ConversionPair pair)
Add conversion pair
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pair | ConversionPair | conversion pair |
public ConversionPair forTarget(FileType target)
Find conversion pair in current list for target file type
Parameters:
| Parameter | Type | Description |
|---|---|---|
| target | FileType | target file type |
Returns: ConversionPair - conversion pair
public FileType getSource()
Source file formats
Returns: FileType - file formats
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.