IcedTea-Web
NetX

net.sourceforge.jnlp.cache
Class CacheDirectory

java.lang.Object
  extended by net.sourceforge.jnlp.cache.CacheDirectory

public final class CacheDirectory
extends java.lang.Object


Method Summary
static boolean cleanDir(java.io.File root)
          Removes empty folders in the current directory.
static void cleanParent(DirectoryNode fileNode)
          This will recursively remove the parent folders if they are empty.
static void getDirStructure(DirectoryNode root)
          Get the structure of directory for keeping track of the protocol and domain.
static java.util.ArrayList<DirectoryNode> getLeafData(DirectoryNode root)
          Get all the leaf nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDirStructure

public static void getDirStructure(DirectoryNode root)
Get the structure of directory for keeping track of the protocol and domain.

Parameters:
root - Location of cache directory.

getLeafData

public static java.util.ArrayList<DirectoryNode> getLeafData(DirectoryNode root)
Get all the leaf nodes.

Parameters:
root - The point where we want to start getting the leafs.
Returns:
An ArrayList of DirectoryNode.

cleanDir

public static boolean cleanDir(java.io.File root)
Removes empty folders in the current directory.

Parameters:
root - File pointing at the beginning of directory.
Returns:
True if something was deleted.

cleanParent

public static void cleanParent(DirectoryNode fileNode)
This will recursively remove the parent folders if they are empty.

Parameters:
fileNode -

IcedTea-Web
NetX

Submit a bug or feature