Package org.apache.batik.transcoder
Interface Transcoder
-
- All Known Implementing Classes:
AbstractTranscoder,ImageTranscoder,JPEGTranscoder,PNGTranscoder,PrintTranscoder,SVGAbstractTranscoder,SVGRenderingAccuracyTest.InternalPNGTranscoder,SVGTranscoder,TIFFTranscoder,ToSVGAbstractTranscoder,WMFTranscoder,XMLAbstractTranscoder
public interface TranscoderThis class defines an API for transcoding.- Version:
- $Id: Transcoder.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTranscodingHint(TranscodingHints.Key key, java.lang.Object value)Sets the value of a single preference for the transcoding process.ErrorHandlergetErrorHandler()Returns the error handler this transcoder uses to report warnings and errors, or null if any.TranscodingHintsgetTranscodingHints()Returns the transcoding hints of this transcoder.voidremoveTranscodingHint(TranscodingHints.Key key)Removes the value of a single preference for the transcoding process.voidsetErrorHandler(ErrorHandler handler)Sets the error handler this transcoder may use to report warnings and errors.voidsetTranscodingHints(java.util.Map hints)Replaces the values of all preferences for the transcoding algorithms with the specified hints.voidsetTranscodingHints(TranscodingHints hints)Sets the values of all preferences for the transcoding algorithms with the specified hints.voidtranscode(TranscoderInput input, TranscoderOutput output)Transcodes the specified input in the specified output.
-
-
-
Method Detail
-
transcode
void transcode(TranscoderInput input, TranscoderOutput output) throws TranscoderException
Transcodes the specified input in the specified output.- Parameters:
input- the input to transcodeoutput- the ouput where to transcode- Throws:
TranscoderException- if an error occured while transcoding
-
getTranscodingHints
TranscodingHints getTranscodingHints()
Returns the transcoding hints of this transcoder.
-
addTranscodingHint
void addTranscodingHint(TranscodingHints.Key key, java.lang.Object value)
Sets the value of a single preference for the transcoding process.- Parameters:
key- the key of the hint to be setvalue- the value indicating preferences for the specified hint category.
-
removeTranscodingHint
void removeTranscodingHint(TranscodingHints.Key key)
Removes the value of a single preference for the transcoding process.- Parameters:
key- the key of the hint to remove
-
setTranscodingHints
void setTranscodingHints(java.util.Map hints)
Replaces the values of all preferences for the transcoding algorithms with the specified hints.- Parameters:
hints- the rendering hints to be set
-
setTranscodingHints
void setTranscodingHints(TranscodingHints hints)
Sets the values of all preferences for the transcoding algorithms with the specified hints.- Parameters:
hints- the rendering hints to be set
-
setErrorHandler
void setErrorHandler(ErrorHandler handler)
Sets the error handler this transcoder may use to report warnings and errors.- Parameters:
handler- to ErrorHandler to use
-
getErrorHandler
ErrorHandler getErrorHandler()
Returns the error handler this transcoder uses to report warnings and errors, or null if any.
-
-