com.atlassian.bamboo.utils
Class FileVisitor

java.lang.Object
  extended by com.atlassian.bamboo.utils.FileVisitor

public abstract class FileVisitor
extends java.lang.Object

This class uses patterns to identify determine which files should be visited.


Constructor Summary
protected FileVisitor(java.io.File rootDirectory)
          Visit file in the root directory
 
Method Summary
abstract  void visitFile(java.io.File file)
          Callback with the file being visted.
 void visitFilesThatMatch(java.lang.String filePattern)
          Visit all files that match the pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileVisitor

protected FileVisitor(java.io.File rootDirectory)
Visit file in the root directory

Parameters:
rootDirectory -
Method Detail

visitFilesThatMatch

public void visitFilesThatMatch(java.lang.String filePattern)
                         throws java.lang.InterruptedException
Visit all files that match the pattern.

The pattern is a comma separated list if sub-patterns. Each sub-pattern can be:

Parameters:
filePattern - Comma separated list of patterns
Throws:
java.lang.InterruptedException - if the calling Thread is interrupted.

visitFile

public abstract void visitFile(java.io.File file)
                        throws java.lang.InterruptedException
Callback with the file being visted.

Parameters:
file - The file
Throws:
java.lang.InterruptedException


Copyright © 2012 Atlassian. All Rights Reserved.