org.apache.aries.util.filesystem
Class FileUtils

java.lang.Object
  extended by org.apache.aries.util.filesystem.FileUtils

public class FileUtils
extends Object


Constructor Summary
FileUtils()
           
 
Method Summary
static List<URI> getBundlesRecursive(URI sourceDir)
          Get a list of URLs for the bundles under the parent URL
static boolean isBundle(File file)
          Check whether a file is a bundle.
 
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

isBundle

public static boolean isBundle(File file)
Check whether a file is a bundle.

Parameters:
file - the file path
Returns:
true if the file is a bundle, false else

getBundlesRecursive

public static List<URI> getBundlesRecursive(URI sourceDir)
                                     throws IOException
Get a list of URLs for the bundles under the parent URL

Parameters:
sourceDir - The parent URL
Returns:
the list of URLs for the bundles
Throws:
IOException


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.