goldengate.ftp.filesystembased
Class FilesystemBasedFtpFile

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

public abstract class FilesystemBasedFtpFile
extends goldengate.common.file.filesystembased.FilesystemBasedFileImpl
implements FtpFile

Filesystem implementation of a FtpFile

Author:
Frederic Bregier

Field Summary
 
Fields inherited from class goldengate.common.file.filesystembased.FilesystemBasedFileImpl
currentFile, isAppend, isReady, session
 
Constructor Summary
FilesystemBasedFtpFile(FtpSession session, FilesystemBasedFtpDir dir, String path, boolean append)
           
 
Method Summary
 long length()
           
 void trueRetrieve()
          Launch retrieve operation (internal method, should not be called directly)
 
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

FilesystemBasedFtpFile

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

length

public long length()
            throws goldengate.common.command.exception.CommandAbstractException
Specified by:
length in interface goldengate.common.file.FileInterface
Overrides:
length in class goldengate.common.file.filesystembased.FilesystemBasedFileImpl
Throws:
goldengate.common.command.exception.CommandAbstractException

trueRetrieve

public void trueRetrieve()
Launch retrieve operation (internal method, should not be called directly)

Specified by:
trueRetrieve in interface FtpFile


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