|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.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 java.lang.String |
AUDIO_CODEC_LIBFAAC
|
static java.lang.String |
AUDIO_FORMAT
|
static java.lang.String |
VIDEO_FORMAT
|
Constructor Summary | |
---|---|
MultiMediaFormatEncoder(java.lang.String contentType,
java.lang.String targetFormat)
The class constructor. |
Method Summary | |
---|---|
void |
encode(java.io.InputStream content,
java.io.OutputStream output)
Performs the file encode transformations, as change of file format. |
protected java.lang.String |
getCodecByFormat(java.lang.String fileFormat)
Returns the codec for the file format. |
protected it.sauronsoftware.jave.EncodingAttributes |
getEncodingAttributes(java.lang.String contentType,
java.lang.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 java.lang.String AUDIO_CODEC_LIBFAAC
public static final java.lang.String VIDEO_FORMAT
public static final java.lang.String AUDIO_FORMAT
Constructor Detail |
---|
public MultiMediaFormatEncoder(java.lang.String contentType, java.lang.String targetFormat)
contentType
- the target content type.targetFormat
- target file format.Method Detail |
---|
public void encode(java.io.InputStream content, java.io.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(java.lang.String contentType, java.lang.String targetFormat) throws PortalException
contentType
- the content type of the target of transformation.targetFormat
- the target file format.
PortalException
protected java.lang.String getCodecByFormat(java.lang.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 |