org.mmbase.streams.transcoders
Class RecognizerTranscoder

java.lang.Object
  extended by 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

Field Summary
protected  boolean clone
           
protected  Codec codec
           
protected  Format format
           
protected  URI in
           
protected  MimeType mimeType
           
protected  URI out
           
(package private)  Recognizer recognizer
           
 
Constructor Summary
RecognizerTranscoder(Recognizer rec)
           
 
Method Summary
 RecognizerTranscoder clone()
           
 Codec getCodec()
           
 Format getFormat()
           
 URI getIn()
           
 String getInId()
           
 String getKey()
          The key of recognizes must be null, that avoid that any subsequent caches are created
 MimeType getMimeType()
           
 URI getOut()
           
 void init(Node d)
          Init the transcoder and destination node with appropiate values.
 void setCodec(String c)
           
 void setFormat(String f)
           
 void setInId(String i)
           
 void setMimeType(String m)
           
 String toString()
           
 void transcode(URI in, URI out, Logger log)
          Transcode a file to another, follow the process with a logger.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

RecognizerTranscoder

public RecognizerTranscoder(Recognizer rec)
Method Detail

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