org.mmbase.streams.transcoders
Class RecognizerTranscoder
java.lang.Object
org.mmbase.streams.transcoders.RecognizerTranscoder
- All Implemented Interfaces:
- Serializable, Cloneable, Transcoder, PublicCloneable<Transcoder>
public class RecognizerTranscoder
- extends Object
- implements Transcoder
This thin wrapper just represents a 'Recognizer' as a Transcoder. This makes administration easier.
- Version:
- $Id: AbstractTranscoder.java 36425 2009-06-25 18:26:28Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
recognizer
final Recognizer recognizer
clone
protected boolean clone
in
protected URI in
out
protected URI out
format
protected Format format
codec
protected Codec codec
mimeType
protected MimeType mimeType
RecognizerTranscoder
public RecognizerTranscoder(Recognizer rec)
init
public void init(Node d)
- Description copied from interface:
Transcoder
- Init the transcoder and destination node with appropiate values.
- Specified by:
init in interface Transcoder
- Parameters:
d - stream destination Node
setFormat
public void setFormat(String f)
getFormat
public Format getFormat()
- Specified by:
getFormat in interface Transcoder
setCodec
public void setCodec(String c)
getCodec
public Codec getCodec()
- Specified by:
getCodec in interface Transcoder
getMimeType
public MimeType getMimeType()
setMimeType
public void setMimeType(String m)
getInId
public String getInId()
setInId
public void setInId(String i)
getKey
public final String getKey()
- The key of recognizes must be null, that avoid that any subsequent caches are created
- Specified by:
getKey in interface Transcoder
transcode
public final void transcode(URI in,
URI out,
Logger log)
throws Exception
- Description copied from interface:
Transcoder
- Transcode a file to another, follow the process with a logger.
- Specified by:
transcode in interface Transcoder
- Throws:
Exception
getIn
public URI getIn()
- Specified by:
getIn in interface Transcoder
getOut
public URI getOut()
- Specified by:
getOut in interface Transcoder
clone
public RecognizerTranscoder clone()
- Specified by:
clone in interface PublicCloneable<Transcoder>- Overrides:
clone in class Object
toString
public String toString()
- Overrides:
toString in class Object
MMBase 2.0-SNAPSHOT - null