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 private
RegExSplitter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String[]
split(String identifier)
void
tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens)
Process the supplied characters and construct the appropriateTokenStream.Token
objects.
-
-
-
Method Detail
-
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.)
-
-