java.lang.Object
com.tlcsdm.core.util.SplitUtil
字符串分割工具.
- 作者:
- unknowIfGuestInDream, Konloch
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static String[]Splits a String with a specified separator String.static String[]Splits a String with a specified separator String.static String[]Splits a String with a specified separator String.static String[]split(String s, String separator, int maxAmount, boolean preserveSeparator, boolean allowEmptyResults) Splits a String with a specified separator String.
-
构造器详细资料
-
SplitUtil
public SplitUtil()
-
-
方法详细资料
-
split
Splits a String with a specified separator String.- 参数:
s- any Stringseparator- any String- 返回:
- a String array split on the separator supplied
-
split
Splits a String with a specified separator String.- 参数:
s- any Stringseparator- any StringmaxAmount- -1 for unlimited, or else the maximum size of results returned- 返回:
- a String array split on the separator supplied
-
split
Splits a String with a specified separator String.- 参数:
s- any Stringseparator- any StringmaxAmount- -1 for unlimited, or else the maximum size of results returnedpreserveSeparator- if true it will include the separator at the end of each split line- 返回:
- a String array split on the separator supplied
-
split
public static String[] split(String s, String separator, int maxAmount, boolean preserveSeparator, boolean allowEmptyResults) Splits a String with a specified separator String.- 参数:
s- any Stringseparator- any StringmaxAmount- -1 for unlimited, or else the maximum size of results returnedpreserveSeparator- if true it will include the separator at the end of each split lineallowEmptyResults- is true the results will include empty results on repeating search parameters- 返回:
- a String array split on the separator supplied
-