Package org.locationtech.jts.util
Class StringUtil
java.lang.Object
org.locationtech.jts.util.StringUtil
Utility methods for working with
Strings.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringchars(char c, int n) static StringReturns an throwable's stack tracestatic StringgetStackTrace(Throwable t, int depth) static Stringspaces(int n) static String[]Mimics the the Java SEString.split(String)method.static StringtoString(double d)
-
Field Details
-
NEWLINE
-
SIMPLE_ORDINATE_FORMAT
-
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
split
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.
-
getStackTrace
Returns an throwable's stack trace -
getStackTrace
-
toString
-
spaces
-
chars
-