All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.archiveaccessor.filestore.Matching

java.lang.Object
   |
   +----com.ibm.archiveaccessor.filestore.Matching

public final class Matching
extends Object
The Matching class implements pattern matching method.


Constructor Index

 o Matching()

Method Index

 o main(String[])
 o match(String, String)
There is requested pattern matching method.

Constructors

 o Matching
 public Matching()

Methods

 o match
 public static boolean match(String aTarget,
                             String aPattern)
There is requested pattern matching method. The following pattern allowed :

'*' - match 0 or more chars, '#' - match 1 chars, '[]' - defines set of chars. Set can contains range, e.g. pattern *#[0-9][0-9] define any string, having two digit at end and any character before (length at least 3)

Parameters:
aTarget - the source string to be matched.
aPattern - the pattern string.
 o main
 public static void main(String arr[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index