Package rife.cmf.transform
Interface RawContentTransformer
- All Superinterfaces:
ContentTransformer<InputStream>
This interface defines the API that has to be implemented by classes that
are capable of transforming raw content data after it's initially loaded.
The content attributes are provided to the transform
method and can be
used to provide hints for the transformation.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiontransform
(InputStream data, Map<String, String> attributes) Transforms the raw content data and returns the transformed data as an array of bytes.
-
Method Details
-
transform
Transforms the raw content data and returns the transformed data as an array of bytes.- Specified by:
transform
in interfaceContentTransformer<InputStream>
- Parameters:
data
- the raw data that has to be transformedattributes
- a map of content attributes that can be used to provide hints or parameters for the transformation- Returns:
- the transformed data
- Since:
- 1.0
-