Package org.locationtech.jts.util
Class StringUtil
- java.lang.Object
-
- org.locationtech.jts.util.StringUtil
-
-
Constructor Summary
Constructors Constructor Description StringUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
chars(char c, int n)
static String
getStackTrace(Throwable t)
Returns an throwable's stack tracestatic String
getStackTrace(Throwable t, int depth)
static String
spaces(int n)
static String[]
split(String s, String separator)
Mimics the the Java SEString.split(String)
method.static String
toString(double d)
Deprecated.useOrdinateFormat
-
-
-
Field Detail
-
NEWLINE
public static final String NEWLINE
-
-
Method Detail
-
split
public static String[] split(String s, String separator)
Mimics the the Java SEString.split(String)
method.- Parameters:
s
- the string to split.separator
- the separator to use.- Returns:
- the array of split strings.
-
toString
public static String toString(double d)
Deprecated.useOrdinateFormat
Returns a string representation of the given number, using a format compatible with WKT.- Parameters:
d
- a number- Returns:
- a string
-
spaces
public static String spaces(int n)
-
chars
public static String chars(char c, int n)
-
-