public final class SAXUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
parseBool(java.lang.String bool,
boolean def) |
static ColorRGBA |
parseColor(org.xml.sax.Attributes attribs) |
static float |
parseFloat(java.lang.String f) |
static float |
parseFloat(java.lang.String f,
float def) |
static int |
parseInt(java.lang.String i) |
static int |
parseInt(java.lang.String i,
int def)
Parses an integer from a string, if the string is null returns
def.
|
static java.lang.String |
parseString(java.lang.String str) |
static java.lang.String |
parseString(java.lang.String str,
java.lang.String def) |
static Vector3f |
parseVector3(org.xml.sax.Attributes attribs) |
public static int parseInt(java.lang.String i, int def) throws org.xml.sax.SAXException
i
- The string to parsedef
- The default value if the string is nullorg.xml.sax.SAXException
public static int parseInt(java.lang.String i) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static float parseFloat(java.lang.String f, float def) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static float parseFloat(java.lang.String f) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static boolean parseBool(java.lang.String bool, boolean def) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static java.lang.String parseString(java.lang.String str, java.lang.String def)
public static java.lang.String parseString(java.lang.String str) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static Vector3f parseVector3(org.xml.sax.Attributes attribs) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static ColorRGBA parseColor(org.xml.sax.Attributes attribs) throws org.xml.sax.SAXException
org.xml.sax.SAXException