net.semanticmetadata.lire.utils
Class FileUtils

java.lang.Object
  extended by net.semanticmetadata.lire.utils.FileUtils

public class FileUtils
extends java.lang.Object

This file is part of the Caliph and Emir project: http://www.SemanticMetadata.net
Date: 04.02.2006
Time: 09:44:49

Author:
Mathias Lux, mathias@juggle.at

Constructor Summary
FileUtils()
           
 
Method Summary
static java.util.ArrayList<java.lang.String> getAllImages(java.io.File directory, boolean descendIntoSubDirectories)
          Returns all jpg images from a directory in an array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

getAllImages

public static java.util.ArrayList<java.lang.String> getAllImages(java.io.File directory,
                                                                 boolean descendIntoSubDirectories)
                                                          throws java.io.IOException
Returns all jpg images from a directory in an array.

Parameters:
directory - the directory to start with
descendIntoSubDirectories - should we include sub directories?
Returns:
an ArrayList containing all the files or nul if none are found..
Throws:
java.io.IOException