Package io.debezium.util
Class Strings.RegExSplitter
- java.lang.Object
-
- io.debezium.util.Strings.RegExSplitter
-
- All Implemented Interfaces:
TokenStream.Tokenizer
- Enclosing class:
- Strings
private static class Strings.RegExSplitter extends Object implements TokenStream.Tokenizer
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
Constructors Modifier Constructor Description privateRegExSplitter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String[]split(String identifier)voidtokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens)Process the supplied characters and construct the appropriateTokenStream.Tokenobjects.
-
-
-
Method Detail
-
tokenize
public void tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens) throws ParsingException
Description copied from interface:TokenStream.TokenizerProcess the supplied characters and construct the appropriateTokenStream.Tokenobjects.- Specified by:
tokenizein interfaceTokenStream.Tokenizer- Parameters:
input- the character input stream; never nulltokens- the factory forTokenStream.Tokenobjects, 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.)
-
-