Package org.apache.batik.transcoder
Class TranscoderSupport
java.lang.Object
org.apache.batik.transcoder.TranscoderSupport
- Direct Known Subclasses:
AbstractTranscoder
This is a utility class that can be used by transcoders that
support transcoding hints and/or error handler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ErrorHandler
The error handler used to report warnings and errors.protected TranscodingHints
The transcoding hints. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTranscodingHint
(TranscodingHints.Key key, Object value) Sets the value of a single preference for the transcoding process.Returns the error handler this transcoder uses to report warnings and errors, or null if any.Returns a copy of the transcoding hints of this transcoder.void
Removes the value of a single preference for the transcoding process.void
setErrorHandler
(ErrorHandler handler) Sets the error handler this transcoder may use to report warnings and errors.void
setTranscodingHints
(Map hints) Replaces the values of all preferences for the transcoding algorithms with the specified hints.void
Sets the values of all preferences for the transcoding algorithms with the specified hints.
-
Field Details
-
hints
The transcoding hints. -
handler
The error handler used to report warnings and errors.
-
-
Constructor Details
-
TranscoderSupport
public TranscoderSupport()Constructs a newTranscoderSupport
.
-
-
Method Details
-
getTranscodingHints
Returns a copy of the transcoding hints of this transcoder. -
addTranscodingHint
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
Removes the value of a single preference for the transcoding process.- Parameters:
key
- the key of the hint to remove
-
setTranscodingHints
Replaces the values of all preferences for the transcoding algorithms with the specified hints.- Parameters:
hints
- the rendering hints to be set
-
setTranscodingHints
Sets the values of all preferences for the transcoding algorithms with the specified hints.- Parameters:
hints
- the rendering hints to be set
-
setErrorHandler
Sets the error handler this transcoder may use to report warnings and errors.- Parameters:
handler
- to ErrorHandler to use
-
getErrorHandler
Returns the error handler this transcoder uses to report warnings and errors, or null if any.
-