goldengate.common.file.filesystembased.specific
Class FilesystemBasedDirJdk5

java.lang.Object
  extended by goldengate.common.file.filesystembased.specific.FilesystemBasedDirJdkAbstract
      extended by goldengate.common.file.filesystembased.specific.FilesystemBasedDirJdk5

public class FilesystemBasedDirJdk5
extends FilesystemBasedDirJdkAbstract

JDK5 version of specific functions for Filesystem.
Note: this class depends on Apache commons Io.

Author:
Frederic Bregier

Field Summary
 
Fields inherited from class goldengate.common.file.filesystembased.specific.FilesystemBasedDirJdkAbstract
ueApacheCommonsIo
 
Constructor Summary
FilesystemBasedDirJdk5()
           
 
Method Summary
 boolean canExecute(File file)
          Result of ls on FileInterface
 long getFreeSpace(File directory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesystemBasedDirJdk5

public FilesystemBasedDirJdk5()
Method Detail

canExecute

public boolean canExecute(File file)
Description copied from class: FilesystemBasedDirJdkAbstract
Result of ls on FileInterface

Specified by:
canExecute in class FilesystemBasedDirJdkAbstract
Parameters:
file -
Returns:
True if the file is executable

getFreeSpace

public long getFreeSpace(File directory)
Specified by:
getFreeSpace in class FilesystemBasedDirJdkAbstract
Parameters:
directory -
Returns:
the free space of the given Directory


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.