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 booleanstatic ColorRGBAparseColor(Attributes attribs) static floatparseFloat(String f) static floatparseFloat(String f, float def) static intstatic intParses an integer from a string, if the string is null returns def.static StringparseString(String str) static StringparseString(String str, String def) static Vector3fparseVector3(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
-