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

java.lang.Object
  extended by it.eng.spagobi.engines.geo.map.utils.SVGMapLoader

public class SVGMapLoader
extends java.lang.Object

The Class SVGMapLoader.

Author:
Andrea Gioia

Constructor Summary
SVGMapLoader()
           
 
Method Summary
static javax.xml.stream.XMLStreamReader getMapAsStream(java.io.File file)
          Gets the map as stream.
static javax.xml.stream.XMLStreamReader getMapAsStream(java.lang.String url)
          Gets the map as stream.
static org.w3c.dom.svg.SVGDocument loadMapAsDocument(it.eng.spagobi.services.content.bo.Content map)
           
static org.w3c.dom.svg.SVGDocument loadMapAsDocument(java.io.File file)
          Load map as document.
static org.w3c.dom.svg.SVGDocument loadMapAsDocument(java.lang.String url)
          Load map as document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGMapLoader

public SVGMapLoader()
Method Detail

loadMapAsDocument

public static org.w3c.dom.svg.SVGDocument loadMapAsDocument(java.io.File file)
                                                     throws java.io.IOException
Load map as document.

Parameters:
file - the file
Returns:
the sVG document
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

loadMapAsDocument

public static org.w3c.dom.svg.SVGDocument loadMapAsDocument(it.eng.spagobi.services.content.bo.Content map)
                                                     throws java.io.IOException
Throws:
java.io.IOException

loadMapAsDocument

public static org.w3c.dom.svg.SVGDocument loadMapAsDocument(java.lang.String url)
                                                     throws java.io.IOException
Load map as document.

Parameters:
url - the url
Returns:
the sVG document
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

getMapAsStream

public static javax.xml.stream.XMLStreamReader getMapAsStream(java.io.File file)
                                                       throws java.io.FileNotFoundException,
                                                              javax.xml.stream.XMLStreamException
Gets the map as stream.

Parameters:
file - the file
Returns:
the map as stream
Throws:
java.io.FileNotFoundException - the file not found exception
javax.xml.stream.XMLStreamException - the XML stream exception

getMapAsStream

public static javax.xml.stream.XMLStreamReader getMapAsStream(java.lang.String url)
                                                       throws java.io.FileNotFoundException,
                                                              javax.xml.stream.XMLStreamException
Gets the map as stream.

Parameters:
url - the url
Returns:
the map as stream
Throws:
java.io.FileNotFoundException - the file not found exception
javax.xml.stream.XMLStreamException - the XML stream exception