goldengate.ftp.core.file
Interface FtpDir

All Superinterfaces:
goldengate.common.file.DirInterface
All Known Implementing Classes:
FileBasedDir, FilesystemBasedFtpDir

public interface FtpDir
extends goldengate.common.file.DirInterface

Author:
Frederic Bregier

Field Summary
 
Fields inherited from interface goldengate.common.file.DirInterface
SEPARATOR, SEPARATORCHAR
 
Method Summary
 FtpFile newFile(String path, boolean append)
          Create a new FtpFile
 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 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
 

Method Detail

newFile

FtpFile newFile(String path,
                boolean append)
                throws goldengate.common.command.exception.CommandAbstractException
Create a new FtpFile

Specified by:
newFile in interface goldengate.common.file.DirInterface
Parameters:
path -
append -
Returns:
the new Ftp FileInterface
Throws:
goldengate.common.command.exception.CommandAbstractException

setFile

FtpFile setFile(String path,
                boolean append)
                throws goldengate.common.command.exception.CommandAbstractException
Set a path as the current FileInterface

Specified by:
setFile in interface goldengate.common.file.DirInterface
Parameters:
path -
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

setUniqueFile

FtpFile setUniqueFile()
                      throws goldengate.common.command.exception.CommandAbstractException
Set a new unique path as the current FileInterface from the current Directory (STOU)

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


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