Package org.gvsig.gpe.prov.kml.utils
Class KmlUtilsParser
java.lang.Object
org.gvsig.gpe.prov.kml.utils.KmlUtilsParser
- Author:
- Jorge Piera Llodrá (piera_jor@gva.es), Carlos Sánchez Periñán (sanchez_carper@gva.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddBlancSymbol(QName name) Replace the blancs of a tag with the deafult blanc symbolstatic ColorfromABGRtoColor(String abgr) static StringfromColorToABGR(Color color) static HashtablegetAttributes(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser) It returns a HashTable with the XML attributes.static Stringstatic StringremoveBlancSymbol(org.gvsig.xmlpull.lib.api.stream.IQName tag) Remove the blanc symbol from a tag
-
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
Remove the blanc symbol from a tag- Parameters:
tag- Tag name- Returns:
- The tag without blancs
-
addBlancSymbol
Replace the blancs of a tag with the deafult blanc symbol- Parameters:
name-- Returns:
- A tag with blancs
-
fromABGRtoColor
-
padWith0
-
fromColorToABGR
-