goldengate.common.file.filesystembased.specific
Class FilesystemBasedDirJdkAbstract

java.lang.Object
  extended by goldengate.common.file.filesystembased.specific.FilesystemBasedDirJdkAbstract
Direct Known Subclasses:
FilesystemBasedDirJdk5, FilesystemBasedDirJdk6

public abstract class FilesystemBasedDirJdkAbstract
extends Object

Abstract class to allow specific function depending on the underlying JDK to used.

Author:
Frederic Bregier

Field Summary
static boolean ueApacheCommonsIo
          Should the Ftp Server use the Apache Commons Io or not: if not wildcard and freespace (ALLO) will not be supported.
 
Constructor Summary
FilesystemBasedDirJdkAbstract()
           
 
Method Summary
abstract  boolean canExecute(File file)
          Result of ls on FileInterface
abstract  long getFreeSpace(File directory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ueApacheCommonsIo

public static boolean ueApacheCommonsIo
Should the Ftp Server use the Apache Commons Io or not: if not wildcard and freespace (ALLO) will not be supported.

Constructor Detail

FilesystemBasedDirJdkAbstract

public FilesystemBasedDirJdkAbstract()
Method Detail

getFreeSpace

public abstract long getFreeSpace(File directory)
Parameters:
directory -
Returns:
the free space of the given Directory

canExecute

public abstract boolean canExecute(File file)
Result of ls on FileInterface

Parameters:
file -
Returns:
True if the file is executable


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