Example usage for Java com.google.common.base Splitter fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | omitEmptyStrings |
int | limit |
Splitter | fixedLength(final int length) Returns a splitter that divides strings into pieces of the given length. |
Splitter | on(char separator) Returns a splitter that uses the given single-character separator. |
Splitter | on(final CharMatcher separatorMatcher) Returns a splitter that considers any single character matched by the given CharMatcher to be a separator. |
Splitter | on(final String separator) Returns a splitter that uses the given fixed string as a separator. |
Splitter | on(final Pattern separatorPattern) Returns a splitter that considers any subsequence matching pattern to be a separator. |
Splitter | onPattern(String separatorPattern) Returns a splitter that considers any subsequence matching a given pattern (regular expression) to be a separator. |
Iterable | split(final CharSequence sequence) Splits sequence into string components and makes them available through an Iterator , which may be lazily evaluated. |
List | splitToList(CharSequence sequence) Splits sequence into string components and returns them as an immutable list. |
Splitter | trimResults() 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) . |
MapSplitter | withKeyValueSeparator(String separator) Returns a MapSplitter which splits entries based on this splitter, and splits entries into keys and values using the specified separator. |
MapSplitter | withKeyValueSeparator(char separator) Returns a MapSplitter which splits entries based on this splitter, and splits entries into keys and values using the specified separator. |
MapSplitter | withKeyValueSeparator(Splitter keyValueSplitter) Returns a MapSplitter which splits entries based on this splitter, and splits entries into keys and values using the specified key-value splitter. |