|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.file.transformation.encoder.MultiMediaFormatEncoder
public class MultiMediaFormatEncoder
Provides Multimedia format encoder used for video or audio. This class has a dependence of Jave.
Field Summary | |
---|---|
static String |
AUDIO_CODEC_LIBFAAC
|
static String |
AUDIO_FORMAT
|
static String |
VIDEO_FORMAT
|
Constructor Summary | |
---|---|
MultiMediaFormatEncoder(String contentType,
String targetFormat)
The class constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String AUDIO_CODEC_LIBFAAC
public static final String VIDEO_FORMAT
public static final String AUDIO_FORMAT
Constructor Detail |
---|
public MultiMediaFormatEncoder(String contentType, String targetFormat)
contentType
- the target content type.targetFormat
- target file format.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |