Package com.jme3.util.xml
Class SAXUtil
java.lang.Object
com.jme3.util.xml.SAXUtil
Utility methods for parsing XML data using SAX.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static ColorRGBA
parseColor
(Attributes attribs) static float
parseFloat
(String f) static float
parseFloat
(String f, float def) static int
static int
Parses an integer from a string, if the string is null returns def.static String
parseString
(String str) static String
parseString
(String str, String def) static Vector3f
parseVector3
(Attributes attribs)
-
Method Details
-
parseInt
Parses an integer from a string, if the string is null returns def.- Parameters:
i
- The string to parsedef
- The default value if the string is null- Returns:
- the parsed value or def
- Throws:
SAXException
- in case of a syntax error
-
parseInt
- Throws:
SAXException
-
parseFloat
- Throws:
SAXException
-
parseFloat
- Throws:
SAXException
-
parseBool
- Throws:
SAXException
-
parseString
-
parseString
- Throws:
SAXException
-
parseVector3
- Throws:
SAXException
-
parseColor
- Throws:
SAXException
-