Class KmlUtilsParser

java.lang.Object
org.gvsig.gpe.prov.kml.utils.KmlUtilsParser

public class KmlUtilsParser extends Object
Author:
Jorge Piera Llodrá (piera_jor@gva.es), Carlos Sánchez Periñán (sanchez_carper@gva.es)
  • Constructor Details

    • KmlUtilsParser

      public KmlUtilsParser()
  • Method Details

    • getAttributes

      public static Hashtable getAttributes(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser) throws org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      It returns a HashTable with the XML attributes. It has been created because the parser doesn't has a getAttribiute(AttributeName) method.
      Parameters:
      parser -
      Returns:
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
    • removeBlancSymbol

      public static String removeBlancSymbol(org.gvsig.xmlpull.lib.api.stream.IQName tag)
      Remove the blanc symbol from a tag
      Parameters:
      tag - Tag name
      Returns:
      The tag without blancs
    • addBlancSymbol

      public static String addBlancSymbol(QName name)
      Replace the blancs of a tag with the deafult blanc symbol
      Parameters:
      name -
      Returns:
      A tag with blancs
    • fromABGRtoColor

      public static Color fromABGRtoColor(String abgr)
    • padWith0

      public static String padWith0(String s)
    • fromColorToABGR

      public static String fromColorToABGR(Color color)