|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.transcoder.ExtendableTranscoderFactory
public class ExtendableTranscoderFactory
An extendable Batik Transcoder factory.
When given a MIME type, find a Transcoder which supports that MIME
type. This factory is extendable as new Transcoder
s can
be added at runtime.
Field Summary | |
---|---|
protected static TranscoderFactory |
singleton
|
protected static Map |
transcoders
|
Method Summary | |
---|---|
void |
addTranscoder(String mimeType,
Class transcoderClass)
Add a mapping from the specified MIME type to a transcoder. |
org.apache.batik.transcoder.Transcoder |
createTranscoder(String mimeType)
Create a transcoder for a specified MIME type. |
static TranscoderFactory |
getTranscoderFactoryImplementation()
Get a reference to this Transcoder Factory. |
void |
removeTranscoder(String mimeType)
Remove the mapping from a specified MIME type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Map transcoders
protected static final TranscoderFactory singleton
Method Detail |
---|
public static final TranscoderFactory getTranscoderFactoryImplementation()
public org.apache.batik.transcoder.Transcoder createTranscoder(String mimeType)
createTranscoder
in interface TranscoderFactory
mimeType
- The MIME type of the destination format
null
if one cannot be foundpublic void addTranscoder(String mimeType, Class transcoderClass)
mimeType
- The MIME type of the TranscodertranscoderClass
- The Class
object for the Transcoder.public void removeTranscoder(String mimeType)
mimeType
- The MIME type to remove from the mapping.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |