xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Kormann <tkorm...@ilog.fr>
Subject Re: simple question
Date Thu, 02 Aug 2001 08:51:00 GMT
On Thursday 02 August 2001 06:19, - XërôKòól - wrote:
> hi!
>
> i just want to know the difference between methods "Transcoder.transcode()"
> n "SVGTranscoder.transcode()".
>
> both have the same description:
> "public void transcode(TranscoderInput input,
>                       TranscoderOutput output)
>                throws TranscoderException
> Transcodes the specified input in the specified output.
> Parameters:
> input - the input to transcode
> output - the ouput where to transcode
> Throws:
> TranscoderException - if an error occured while transcoding"
>
> i also want to know their functions n how to use them.
> an example will greatly appreciated.
> thank you.
>
> have a nice day.


Transcoder is an interface. The transcode method represents the ''contract'' 
a transcoder must follow.

The SVGTranscoder is a transcoder dedicated to pretty printing.
Another transcoder such as the PNGTranscoder is a transcoder that produces a 
PNG image for a particular SVG document.

All the transcoder in Batik can be manipulated using the Transcoder 
interface. They all have the methods you have seen in the Transcoder.java 
file.

Hope it helps,
Thierry.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message