public class

StarMatcher

extends Object
implements IStringMatcher
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.base.StarMatcher

Class Overview

String matcher accepting wildcard-expressions. An initial star is implied to allow matching anywhere in the expression. E.g.: "blah*foo" will match "xxxblahyyyfoo".

Summary

Nested Classes
class StarMatcher.LineResult  
Public Constructors
StarMatcher(String input, boolean caseInsensitive)
StarMatcher(String input)
Public Methods
Collection<String> collect(Collection<String> values)
StarMatcher.LineResult findLine(String buffer, int fromIndex, int toIndex)
Search for a line (within the provided buffer) matching this star pattern.
int getCharSearchLength()
boolean matches(String value)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.util.base.IStringMatcher

Public Constructors

public StarMatcher (String input, boolean caseInsensitive)

public StarMatcher (String input)

Public Methods

public Collection<String> collect (Collection<String> values)

public StarMatcher.LineResult findLine (String buffer, int fromIndex, int toIndex)

Search for a line (within the provided buffer) matching this star pattern.

Parameters
buffer buffer to be searched
fromIndex start offset in buffer (inclusive)
toIndex end offset in buffer (exclusive)
Returns
  • an object or null if nothing was found

public int getCharSearchLength ()

public boolean matches (String value)