Package org.jostraca.util

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


  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

Related Classes of org.jostraca.util.GnuRegExpProvider

Copyright © 2018 www.massapicom. 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.