goldengate.ftp.exec.file
Class FileBasedFile

java.lang.Object
  extended by goldengate.common.file.filesystembased.FilesystemBasedFileImpl
      extended by goldengate.ftp.filesystembased.FilesystemBasedFtpFile
          extended by goldengate.ftp.exec.file.FileBasedFile
All Implemented Interfaces:
goldengate.common.file.FileInterface, goldengate.ftp.core.file.FtpFile

public class FileBasedFile
extends goldengate.ftp.filesystembased.FilesystemBasedFtpFile

FtpFile implementation based on true directories and files

Author:
Frederic Bregier

Field Summary
 
Fields inherited from class goldengate.common.file.filesystembased.FilesystemBasedFileImpl
currentFile, isAppend, isReady, session
 
Constructor Summary
FileBasedFile(goldengate.ftp.core.session.FtpSession session, FileBasedDir fileBasedDir, String path, boolean append)
           
 
Method Summary
 File getTrueFile()
          This method is a good to have in a true FtpFile implementation.
 
Methods inherited from class goldengate.ftp.filesystembased.FilesystemBasedFtpFile
length, trueRetrieve
 
Methods inherited from class goldengate.common.file.filesystembased.FilesystemBasedFileImpl
abortFile, canRead, canWrite, checkIdentify, clear, closeFile, delete, exists, get, getDir, getFile, getFileChannel, getFileFromPath, getFileOutputStream, getMarker, getPosition, getRandomFile, getRelativePath, getSession, isDirectory, isFile, isInReading, isInWriting, readDataBlock, renameTo, restartMarker, retrieve, setPosition, store, writeDataBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface goldengate.common.file.FileInterface
abortFile, canRead, canWrite, checkIdentify, clear, closeFile, delete, exists, getDir, getFile, getMarker, getSession, isDirectory, isFile, isInReading, isInWriting, readDataBlock, renameTo, restartMarker, retrieve, store, writeDataBlock
 

Constructor Detail

FileBasedFile

public FileBasedFile(goldengate.ftp.core.session.FtpSession session,
                     FileBasedDir fileBasedDir,
                     String path,
                     boolean append)
              throws goldengate.common.command.exception.CommandAbstractException
Parameters:
session -
fileBasedDir - It is not necessary the directory that owns this file.
path -
append -
Throws:
goldengate.common.command.exception.CommandAbstractException
Method Detail

getTrueFile

public File getTrueFile()
This method is a good to have in a true FtpFile implementation.

Returns:
the File associated with the current FtpFile operation


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