Package lumis.portal.file.transformation
Class VideoDimensionTransformation
- java.lang.Object
-
- lumis.portal.file.transformation.VideoDimensionTransformation
-
- All Implemented Interfaces:
ITransformation
public class VideoDimensionTransformation extends Object implements ITransformation
Performs the the video scale transformation.
Scale transformations are based on two parameters:- Width: corresponds to the width of screen.
- Height: corresponds to the height of screen.
- Since:
- 6.1.0
- Version:
- $Revision: 17047 $ $Date: 2015-03-03 11:22:22 -0300 (Tue, 03 Mar 2015) $
-
-
Constructor Summary
Constructors Constructor Description VideoDimensionTransformation(InputStream content, int width, int height, String format)
The constructor of class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
transform(OutputStream outputStream)
Performs the file transformation using theoutputStream
parameter as target of the file transformations.
-
-
-
Constructor Detail
-
VideoDimensionTransformation
public VideoDimensionTransformation(InputStream content, int width, int height, String format)
The constructor of class. The content is the source of transformation. the width parameter is the new video width, and the height is the new video height after the end of transformation.- Parameters:
content
- the source of transformation.width
- the new width.height
- the new height.- Since:
- 6.1.0
-
-
Method Detail
-
transform
public void transform(OutputStream outputStream) throws PortalException
Description copied from interface:ITransformation
Performs the file transformation using theoutputStream
parameter as target of the file transformations.- Specified by:
transform
in interfaceITransformation
- Parameters:
outputStream
- the writer to be transformed.- Throws:
PortalException
-
-