public class BOM extends Object implements StringSearchAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
BOM.Factory |
| Constructor and Description |
|---|
BOM(String pattern) |
BOM(String pattern,
net.amygdalum.util.text.CharMapping mapping) |
| Modifier and Type | Method and Description |
|---|---|
StringFinder |
createFinder(CharProvider chars,
StringFinderOption... options)
creates a StringFinder instance from the pattern (given by the current instance) and the given document.
|
int |
getPatternLength() |
String |
toString() |
public BOM(String pattern)
public BOM(String pattern, net.amygdalum.util.text.CharMapping mapping)
public int getPatternLength()
getPatternLength in interface StringSearchAlgorithmpublic StringFinder createFinder(CharProvider chars, StringFinderOption... options)
StringSearchAlgorithmcreateFinder in interface StringSearchAlgorithmchars - the given document wrapped into a CharProvideroptions - the configuration options for the string finderCopyright © 2017. All rights reserved.