-
Returns a splitter that divides strings into pieces of the given length.
Splitter.limit(int maxItems)
Returns a splitter that behaves equivalently to this splitter but stops splitting after
it reaches the limit.
Returns a splitter that behaves equivalently to this splitter, but automatically omits
empty strings from the results.
Splitter.on(char separator)
Returns a splitter that uses the given single-character separator.
Returns a splitter that considers any single character matched by the given CharMatcher
to be a separator.
Returns a splitter that uses the given fixed string as a separator.
Returns a splitter that considers any subsequence matching pattern to be a separator.
Returns a splitter that considers any subsequence matching a given pattern (regular expression)
to be a separator.
Returns a splitter that behaves equivalently to this splitter, but automatically
removes leading and trailing CharMatcher#whitespace whitespace from each returned
substring; equivalent to trimResults(CharMatcher.whitespace()).
Returns a splitter that behaves equivalently to this splitter, but removes all leading
or trailing characters matching the given CharMatcher from each returned substring.
Returns a MapSplitter which splits entries based on this splitter, and splits entries
into keys and values using the specified key-value splitter.