public class MultiMediaFormatEncoder extends Object implements IFormatTransformer
Modifier and Type | Field and Description |
---|---|
static String |
AUDIO_CODEC_LIBFAAC |
static String |
AUDIO_FORMAT |
static String |
VIDEO_FORMAT |
Constructor and Description |
---|
MultiMediaFormatEncoder(String contentType,
String targetFormat)
The class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(InputStream content,
OutputStream output)
Performs the file encode transformations, as change of file format.
|
protected String |
getCodecByFormat(String fileFormat)
Returns the codec for the file format.
|
protected it.sauronsoftware.jave.EncodingAttributes |
getEncodingAttributes(String contentType,
String targetFormat)
Returns the encoding attributes correctly built for given content type and target format.
|
public static final String AUDIO_CODEC_LIBFAAC
public static final String VIDEO_FORMAT
public static final String AUDIO_FORMAT
public void encode(InputStream content, OutputStream output) throws PortalException
IFormatTransformer
content
parameter is the source of transformation and
output
parameter is the target.encode
in interface IFormatTransformer
content
- the reader source of encode.output
- the target of encode.PortalException
protected it.sauronsoftware.jave.EncodingAttributes getEncodingAttributes(String contentType, String targetFormat) throws PortalException
contentType
- the content type of the target of transformation.targetFormat
- the target file format.PortalException
protected String getCodecByFormat(String fileFormat) throws PortalException
fileFormat
- the format of the target file.PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.