net.larsan.urd.archive
Class FolderScanner

java.lang.Object
  |
  +--net.larsan.urd.archive.FolderScanner

public class FolderScanner
extends java.lang.Object

The folder scanner a helper utility for managing folders of norna archive files.

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
ServiceArchive

Method Summary
static ServiceArchive[] scanFolder(java.io.File folder, boolean recurse)
          Scan a folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

scanFolder

public static ServiceArchive[] scanFolder(java.io.File folder,
                                          boolean recurse)
                                   throws java.io.IOException
Scan a folder. This will pick up only JAR archives whose manifest contains the 'Norna-Service' attribute.

Parameters:
folder - Folder to scan, must not be null
recurse - Define if the scan should recurse into subfolders
Throws:
java.io.IOException - If the folder foed not exist, or on IO errors