public abstract class AbstractTranscoder 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 |
static String |
PACKAGE |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTranscoder() |
| Modifier and Type | Method and Description |
|---|---|
AbstractTranscoder |
clone() |
Codec |
getCodec()
The codec of the result.
|
Format |
getFormat()
The format of the result.
|
URI |
getIn()
{#link transcode} is feed with input.
|
static Transcoder |
getInstance(String key)
Default implementation of parsing the 'key' given by a
Trancoder. |
String |
getKey()
Default and generic implementation of the key.
|
MimeType |
getMimeType() |
URI |
getOut()
{#link transcode} is feed with a destination.
|
void |
init(Node dest)
Init the transcoder and destination node with appropiate values.
|
void |
setCodec(String c) |
void |
setFormat(String f) |
void |
setMimeType(String m) |
String |
toString() |
protected abstract void |
transcode(Logger log) |
void |
transcode(URI in,
URI out,
Logger log)
Transcode a file to another, follow the process with a logger.
|
public static String PACKAGE
protected boolean clone
protected URI in
protected URI out
protected Format format
protected Codec codec
protected MimeType mimeType
public static Transcoder getInstance(String key) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException
Trancoder.
[:] [=, [= key - ClassNotFoundExceptionInstantiationExceptionIllegalAccessExceptionNoSuchMethodExceptionInvocationTargetExceptionpublic void init(Node dest)
Transcoderinit in interface Transcoderdest - 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 getKey()
getInstance(java.lang.String). This makes for a key which is, like the icaches 'ckey'
key unique and parseable.
The implementation depends on Settings annotations to be set on the classes.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 AbstractTranscoder clone()
clone in interface PublicCloneable<Transcoder>clone in class ObjectMMBase 1.9-SNAPSHOT - ${javadoctimestamp}