it.eng.spagobi.engines.geo.map.utils
Class SVGMapConverter

java.lang.Object
  extended by it.eng.spagobi.engines.geo.map.utils.SVGMapConverter
All Implemented Interfaces:
it.eng.spagobi.utilities.service.IStreamEncoder

public class SVGMapConverter
extends java.lang.Object
implements it.eng.spagobi.utilities.service.IStreamEncoder

The Class SVGMapConverter.

Author:
Andrea Gioia

Constructor Summary
SVGMapConverter()
           
 
Method Summary
 void encode(java.io.InputStream inputStream, java.io.OutputStream outputStream)
           
static void SVGToJPEGTransform(java.io.InputStream inputStream, java.io.OutputStream outputStream)
          Transform the svg file into a jpeg image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGMapConverter

public SVGMapConverter()
Method Detail

encode

public void encode(java.io.InputStream inputStream,
                   java.io.OutputStream outputStream)
            throws java.io.IOException
Specified by:
encode in interface it.eng.spagobi.utilities.service.IStreamEncoder
Throws:
java.io.IOException

SVGToJPEGTransform

public static void SVGToJPEGTransform(java.io.InputStream inputStream,
                                      java.io.OutputStream outputStream)
                               throws java.io.IOException
Transform the svg file into a jpeg image.

Parameters:
inputStream - the strema of the svg map
outputStream - the output stream where the jpeg image is written
Throws:
java.lang.Exception - raised if some errors occur during the elaboration
java.io.IOException