Examples of GnuRegExpProvider


Examples of org.jostraca.util.GnuRegExpProvider


  /* Public Methods << */

  public void testGnuRegExp() throws Exception {
    GnuRegExpProvider rep = new GnuRegExpProvider();
    doMatchRegExpTests( rep );
    doReplaceRegExpTests( rep );
    doMatchAllTests( rep );
  }
View Full Code Here

Examples of org.jostraca.util.GnuRegExpProvider

  public void testRecursiveSearch() throws Exception {
    File examples = new File( FileUtil.findFile( "org/jostraca" ), "../../../examples" );
    assertTrue( examples.exists() );

    GnuRegExpProvider rep   = new GnuRegExpProvider();
    File[]            files = FileUtil.recursiveSearch( examples, new RegExpFileNameFilter( rep.make( "^.*\\.txt$" ) ) );
    int               numF  = files.length;
    for( int fI = 0; fI < numF; fI++ ) {
      System.out.println( files[fI] );
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.