goldengate.ftp.filesystembased
Class FilesystemBasedFtpDir

java.lang.Object
  extended by goldengate.common.file.AbstractDir
      extended by goldengate.common.file.filesystembased.FilesystemBasedDirImpl
          extended by goldengate.ftp.filesystembased.FilesystemBasedFtpDir
All Implemented Interfaces:
goldengate.common.file.DirInterface, FtpDir
Direct Known Subclasses:
FileBasedDir

public abstract class FilesystemBasedFtpDir
extends goldengate.common.file.filesystembased.FilesystemBasedDirImpl
implements FtpDir

Filesystem implementation of a FtpDir

Author:
Frederic Bregier

Field Summary
 
Fields inherited from class goldengate.common.file.filesystembased.FilesystemBasedDirImpl
filesystemBasedFtpDirJdk
 
Fields inherited from class goldengate.common.file.AbstractDir
currentDir, ISUNIX, optsMLSx, roots, session
 
Fields inherited from interface goldengate.common.file.DirInterface
SEPARATOR, SEPARATORCHAR
 
Constructor Summary
FilesystemBasedFtpDir(FtpSession session)
           
 
Method Summary
 FtpFile setFile(String path, boolean append)
          Set a path as the current FileInterface
 FtpFile setUniqueFile()
          Set a new unique path as the current FileInterface from the current Directory (STOU)
 
Methods inherited from class goldengate.common.file.filesystembased.FilesystemBasedDirImpl
canRead, canWrite, changeDirectory, changeDirectoryNotChecked, exists, fileFull, getCRC, getFileFromPath, getFreeSpace, getMD5, getModificationTime, getModificationTime, getRelativePath, getSHA1, getTrueFile, initJdkDependent, isDirectory, isFile, isFullTime, list, listFull, lsInfo, mkdir, mlsxInfo, rmdir, wildcardFiles
 
Methods inherited from class goldengate.common.file.AbstractDir
changeParentDirectory, checkIdentify, clear, consolidatePath, getCanonicalPath, getCorrespondingRoot, getOptsMLSx, getPwd, getSession, initAfterIdentification, initWindowsSupport, isAbsoluteWindows, normalizePath, validatePath, validatePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface goldengate.ftp.core.file.FtpDir
newFile
 
Methods inherited from interface goldengate.common.file.DirInterface
canRead, canWrite, changeDirectory, changeDirectoryNotChecked, changeParentDirectory, checkIdentify, clear, exists, fileFull, getCRC, getFreeSpace, getMD5, getModificationTime, getOptsMLSx, getPwd, getSession, getSHA1, initAfterIdentification, isDirectory, isFile, list, listFull, mkdir, rmdir, validatePath
 

Constructor Detail

FilesystemBasedFtpDir

public FilesystemBasedFtpDir(FtpSession session)
Parameters:
session -
Method Detail

setUniqueFile

public FtpFile setUniqueFile()
                      throws goldengate.common.command.exception.CommandAbstractException
Description copied from interface: FtpDir
Set a new unique path as the current FileInterface from the current Directory (STOU)

Specified by:
setUniqueFile in interface goldengate.common.file.DirInterface
Specified by:
setUniqueFile in interface FtpDir
Overrides:
setUniqueFile in class goldengate.common.file.filesystembased.FilesystemBasedDirImpl
Returns:
the Ftp FileInterface if it is correctly initiate
Throws:
goldengate.common.command.exception.CommandAbstractException

setFile

public FtpFile setFile(String path,
                       boolean append)
                throws goldengate.common.command.exception.CommandAbstractException
Description copied from interface: FtpDir
Set a path as the current FileInterface

Specified by:
setFile in interface goldengate.common.file.DirInterface
Specified by:
setFile in interface FtpDir
Overrides:
setFile in class goldengate.common.file.AbstractDir
append - True if this file is supposed to be in append mode (APPE), False in any other cases
Returns:
the Ftp FileInterface if it is correctly initiate
Throws:
goldengate.common.command.exception.CommandAbstractException


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