public class SLDUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENCODING |
static String |
DEFAULT_VERSION |
static DecimalFormat |
df |
static String |
VERSION_1_0_0 |
static String |
VERSION_1_1_0 |
Constructor and Description |
---|
SLDUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
detectVersion(File infile) |
static List<Float> |
getAsFloats(String value,
String sep) |
static String |
getAsString(List<Float> list,
String sep) |
static String |
getTextUntilTag(XmlPullParser parser) |
static boolean |
isStr(String a,
String b) |
static double |
parseDouble(String str)
Returns -1 if not parseable
|
static int |
parseInteger(String str)
Returns -1 if not parseable
|
static Point2D |
parsePair(String str) |
public static final String DEFAULT_ENCODING
public static final String VERSION_1_0_0
public static final String VERSION_1_1_0
public static final String DEFAULT_VERSION
public static DecimalFormat df
public static String detectVersion(File infile) throws XmlPullParserException, IOException, SLDReadException
XmlPullParserException
IOException
SLDReadException
public static String getTextUntilTag(XmlPullParser parser) throws XmlPullParserException, IOException
XmlPullParserException
IOException
public static int parseInteger(String str)
public static double parseDouble(String str)