org.apache.rat.walker
Class ArchiveWalker

java.lang.Object
  extended by org.apache.rat.walker.Walker
      extended by org.apache.rat.walker.ArchiveWalker
All Implemented Interfaces:
IReportable

public class ArchiveWalker
extends Walker
implements IReportable

Walks various kinds of archives files


Field Summary
 
Fields inherited from class org.apache.rat.walker.Walker
file, filter, name
 
Constructor Summary
ArchiveWalker(File file, FilenameFilter filter)
          Constructs a walker.
 
Method Summary
 void run(RatReport report)
          Run a report over all files and directories in this GZIPWalker, ignoring any files/directories set to be ignored.
 
Methods inherited from class org.apache.rat.walker.Walker
ignored, isRestricted, regexFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveWalker

public ArchiveWalker(File file,
                     FilenameFilter filter)
              throws FileNotFoundException
Constructs a walker.

Parameters:
file - not null
filter - filters input files (optional), or null when no filtering should be performed
Throws:
FileNotFoundException - in case of I/O errors.
Method Detail

run

public void run(RatReport report)
         throws RatException
Run a report over all files and directories in this GZIPWalker, ignoring any files/directories set to be ignored.

Specified by:
run in interface IReportable
Parameters:
report - the defined RatReport to run on this GZIP walker.
Throws:
RatException


Copyright © 2006–2014 Apache Software Foundation. All rights reserved.