Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atlassian.bamboo.utils
Class FileVisitor

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

    public abstract class FileVisitor

extends Object

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

Constructor Summary
`protected` | `FileVisitor(File rootDirectory)` Visit file in the root directory

Method Summary
`abstract void` | `visitFile(File file)` Callback with the file being visted.
`void` | `visitFilesThatMatch(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(File rootDirectory)

  Visit file in the root directory

  Parameters:
    `rootDirectory` -

Method Detail

### visitFilesThatMatch

    public void visitFilesThatMatch(String filePattern)

  Visit all files that match the pattern.

  The pattern is a comma separated list if sub-patterns. Each sub-pattern can be:
  - A subdirectory name
  - An ant style (regex) pattern - see http://ant.apache.org/manual/dirtasks.html#patterns

  Parameters:
    `filePattern` - Comma separated list of patterns

### visitFile

    public abstract void visitFile(File file)

  Callback with the file being visted.

  Parameters:
    `file` - The file

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.