com.uwyn.rife.cmf.transform
Interface RawContentTransformer

All Superinterfaces:
ContentTransformer<InputStream>

public interface RawContentTransformer
extends 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
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)
See Also:
ContentTransformer

Method Summary
 InputStream transform(InputStream data, Map<String,String> attributes)
          Transforms the raw content data and returns the transformed data as an array of bytes.
 

Method Detail

transform

InputStream transform(InputStream data,
                      Map<String,String> attributes)
                      throws ContentManagerException
Transforms the raw content data and returns the transformed data as an array of bytes.

Specified by:
transform in interface ContentTransformer<InputStream>
Parameters:
data - the raw data that has to be transformed
attributes - a map of content attributes that can be used to provide hints or parameters for the transformation
Returns:
the transformed data
Throws:
ContentManagerException
Since:
1.0


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.