Examples of WildcardFileFilter


Examples of org.apache.commons.io.filefilter.WildcardFileFilter

  @Override
  public List<RepositoryFile> getChildren( RepositoryRequest repositoryRequest ) {
    List<RepositoryFile> children = new ArrayList<RepositoryFile>();
    File folder = new File( getPhysicalFileLocation( repositoryRequest.getPath() ) );
    for ( Iterator<File> iterator = FileUtils.listFiles( folder, new WildcardFileFilter( repositoryRequest.getChildNodeFilter() ), null ).iterator(); iterator
        .hasNext(); ) {
      children.add( internalGetFile( (File) iterator.next() ) );
    }
    return children;
  }
View Full Code Here

Examples of org.apache.commons.io.filefilter.WildcardFileFilter

        this.listPath = null;
    }
   
    private File[] filterFile() {
      if(this.file.exists() && this.file.isDirectory()) {
        FileFilter fileFilter = new WildcardFileFilter(this.pattern);
        return this.file.listFiles(fileFilter);
      }
      this.trace(this.file.getPath(), "File doesn't exist or isn't a directory ");
      return null;
    }
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.