|
Method Summary | ||
getComments(boolean available) Overridden to supply a comment or String of commented out transformation properties that specify any (hard coded or implied) supported transformations. |
||
long |
getMaxSourceSizeKBytes(String sourceMimetype, String targetMimetype, TransformationOptions options) Returns the maximum source size (in KBytes) allowed given the supplied values. |
|
getName() Returns transformer's name used in configuration. |
||
long |
getTransformationTime() Deprecated. use mimetype specific version. |
|
long |
getTransformationTime(String sourceMimetype, String targetMimetype) Provides an estimate, usually a worst case guess, of how long a transformation will take. |
|
boolean |
isExplicitTransformation(String sourceMimetype, String targetMimetype, TransformationOptions options) Deprecated. Use transformer priority and unsupported transformer properties. Indicates whether given the provided transformation parameters this transformer can provide an explicit transformation. An explicit transformation indicates that the transformation happens directly and not as a result of another transformation process. Explicit transformation always take presidency over normal transformations. |
|
boolean |
isTransformable(String sourceMimetype, long sourceSize, String targetMimetype, TransformationOptions options) Indicates whether the provided source mimetype can be transformed into the target mimetype with the options specified by this content transformer. |
|
boolean |
isTransformable(String sourceMimetype, String targetMimetype, TransformationOptions options) Deprecated. use version with extra sourceSize parameter. |
|
boolean |
isTransformableMimetype(String sourceMimetype, String targetMimetype, TransformationOptions options) Sub component of isTransformable(String, long, String, TransformationOptions) that checks just the mimetypes. |
|
boolean |
isTransformableSize(String sourceMimetype, long sourceSize, String targetMimetype, TransformationOptions options) Sub component of isTransformable(String, long, String, TransformationOptions) that checks just the size limits. |
|
void |
transform(ContentReader reader, ContentWriter writer) | |
void |
transform(ContentReader reader, ContentWriter writer, Map<String,Object> options) Deprecated. Deprecated since 3.0. Options should now be provided as a TransformationOptions object. |
|
void |
transform(ContentReader reader, ContentWriter contentWriter, TransformationOptions options) Transforms the content provided by the reader and source mimetype to the writer and target mimetype with the provided transformation options. |
This method is used to determine, up front, which of a set of equally reliant transformers will be used for a specific transformation.
The source and target mimetypes must be available on the ContentAccessor.getMimetype() methods of both the reader and the writer.
Both reader and writer will be closed after the transformation completes.
The transformation viability can be determined by an up front call to isTransformable(String, String, TransformationOptions).
The source and target mimetypes must be available on the ContentAccessor.getMimetype() methods of both the reader and the writer.
Both reader and writer will be closed after the transformation completes.
The provided options can be null.
|