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