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 Modifier and Type Method Description static Stringchars(char c, int n)static StringgetStackTrace(Throwable t)Returns an throwable's stack tracestatic StringgetStackTrace(Throwable t, int depth)static Stringspaces(int n)static String[]split(String s, String separator)Mimics the the Java SEString.split(String)method.static StringtoString(double d)
-
-
-
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)
-
spaces
public static String spaces(int n)
-
chars
public static String chars(char c, int n)
-
-