public class RecognizerTranscoder extends Object implements Transcoder
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
clone |
protected Codec |
codec |
protected Format |
format |
protected URI |
in |
protected MimeType |
mimeType |
protected URI |
out |
(package private) Recognizer |
recognizer |
| Constructor and Description |
|---|
RecognizerTranscoder(Recognizer rec) |
| Modifier and Type | Method and Description |
|---|---|
RecognizerTranscoder |
clone() |
Codec |
getCodec()
The codec of the result.
|
Format |
getFormat()
The format of the result.
|
URI |
getIn()
{#link transcode} is feed with input.
|
String |
getInId() |
String |
getKey()
The key of recognizes must be null, that avoid that any subsequent caches are created
|
MimeType |
getMimeType() |
URI |
getOut()
{#link transcode} is feed with a destination.
|
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.
|
final Recognizer recognizer
protected boolean clone
protected URI in
protected URI out
protected Format format
protected Codec codec
protected MimeType mimeType
public RecognizerTranscoder(Recognizer rec)
public void init(Node d)
Transcoderinit in interface Transcoderd - stream destination Nodepublic void setFormat(String f)
public Format getFormat()
TranscodergetFormat in interface Transcoderpublic void setCodec(String c)
public Codec getCodec()
TranscodergetCodec in interface Transcoderpublic MimeType getMimeType()
public void setMimeType(String m)
public String getInId()
public void setInId(String i)
public final String getKey()
getKey in interface Transcoderpublic final void transcode(URI in, URI out, Logger log) throws Exception
Transcodertranscode in interface Transcoderlog - Progress is written to this loggerExceptionpublic URI getIn()
TranscodergetIn in interface Transcoderpublic URI getOut()
TranscodergetOut in interface Transcoderpublic RecognizerTranscoder clone()
clone in interface PublicCloneable<Transcoder>clone in class ObjectMMBase 1.9-SNAPSHOT - ${javadoctimestamp}