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

Field Summary
static org.apache.log4j.Logger logger
          Logger component.
 
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.
 org.w3c.dom.svg.SVGDocument loadMapAsDocument(it.eng.spagobi.services.content.bo.Content map)
           
 org.w3c.dom.svg.SVGDocument loadMapAsDocument(java.io.File file)
          Load map as document.
 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
 

Field Detail

logger

public static transient org.apache.log4j.Logger logger
Logger component.

Constructor Detail

SVGMapLoader

public SVGMapLoader()
Method Detail

loadMapAsDocument

public 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 org.w3c.dom.svg.SVGDocument loadMapAsDocument(it.eng.spagobi.services.content.bo.Content map)
                                              throws java.io.IOException
Throws:
java.io.IOException

loadMapAsDocument

public 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