public interface Transformer
| Modifier and Type | Method and Description |
|---|---|
Collection<Class<? extends Source>> |
getSupportedInputs()
return a collection of source classes from which the transformations are supported.
|
Collection<Class<? extends Source>> |
getSupportedOutputs()
return a collection of source classes to which the transformations are supported.
|
<T extends Source> |
transform(Source source, Class<T> clazz, TransformOptions options)
Perform a transformation (i.e.
|
Collection<Class<? extends Source>> getSupportedInputs()
Collection<Class<? extends Source>> getSupportedOutputs()
<T extends Source> T transform(Source source, Class<T> clazz, TransformOptions options) throws TransformException
source - the current source instance that we wish to transformclazz - the desired type of source we are trying to createoptions - the set of options that may influence the transformation (e.g. character set encoding)TransformException - if there is a failure while performing the transformationUnsupportedOperationException - if the requested transformation is not supported