Package io.debezium.util
Class Strings.RegExSplitter
java.lang.Object
io.debezium.util.Strings.RegExSplitter
- All Implemented Interfaces:
TokenStream.Tokenizer
- Enclosing class:
- Strings
A tokenization class used to split a comma-separated list of regular expressions.
If a comma is part of expression then it can be prepended with
'\'
so
it will not act as a separator.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
void
tokenize
(TokenStream.CharacterStream input, TokenStream.Tokens tokens) Process the supplied characters and construct the appropriateTokenStream.Token
objects.
-
Constructor Details
-
RegExSplitter
public RegExSplitter()
-
-
Method Details
-
split
-
tokenize
public void tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens) throws ParsingException Description copied from interface:TokenStream.Tokenizer
Process the supplied characters and construct the appropriateTokenStream.Token
objects.- Specified by:
tokenize
in interfaceTokenStream.Tokenizer
- Parameters:
input
- the character input stream; never nulltokens
- the factory forTokenStream.Token
objects, which records the order in which the tokens are created- Throws:
ParsingException
- if there is an error while processing the character stream (e.g., a quote is not closed, etc.)
-