|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgoldengate.common.file.filesystembased.FilesystemBasedFileImpl
openr66.context.filesystem.R66File
public class R66File

File representation
| Field Summary |
|---|
| Fields inherited from class goldengate.common.file.filesystembased.FilesystemBasedFileImpl |
|---|
currentFile, isAppend, isReady, session |
| Constructor Summary | |
|---|---|
R66File(R66Session session,
R66Dir dir,
String path)
This constructor is for External file |
|
R66File(R66Session session,
R66Dir dir,
String path,
boolean append)
|
|
| Method Summary | |
|---|---|
boolean |
canRead()
|
boolean |
canWrite()
|
boolean |
closeFile()
|
boolean |
delete()
|
boolean |
exists()
|
String |
getBasename()
|
static String |
getBasename(String path)
|
protected FileChannel |
getFileChannel()
|
protected FileOutputStream |
getFileOutputStream(boolean append)
Returns the FileOutputStream in Out mode associated with the current file. |
protected RandomAccessFile |
getRandomFile()
|
R66Session |
getSession()
|
File |
getTrueFile()
This method is a good to have in a true FileInterface implementation. |
boolean |
isDirectory()
|
boolean |
isExternal()
|
boolean |
isFile()
|
long |
length()
|
boolean |
renameTo(String path)
|
boolean |
renameTo(String path,
boolean external)
Move the current file to the path as destination |
void |
replaceFilename(String filename,
boolean isExternal)
Replace the current file with the new filename after closing the previous one. |
void |
retrieveBlocking(AtomicBoolean running)
Start the retrieve (send to the remote host the local file) |
String |
toString()
|
| Methods inherited from class goldengate.common.file.filesystembased.FilesystemBasedFileImpl |
|---|
abortFile, checkIdentify, clear, get, getDir, getFile, getFileFromPath, getMarker, getPosition, getRelativePath, isInReading, isInWriting, readDataBlock, restartMarker, retrieve, setPosition, store, writeDataBlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public R66File(R66Session session,
R66Dir dir,
String path,
boolean append)
throws goldengate.common.command.exception.CommandAbstractException
session - dir - path - append -
goldengate.common.command.exception.CommandAbstractException
public R66File(R66Session session,
R66Dir dir,
String path)
session - dir - path - | Method Detail |
|---|
public void retrieveBlocking(AtomicBoolean running)
throws OpenR66RunnerErrorException,
OpenR66ProtocolSystemException
running - When false, should stop the runner
OpenR66RunnerErrorException
OpenR66ProtocolSystemExceptionpublic File getTrueFile()
public String getBasename()
public static String getBasename(String path)
path -
public R66Session getSession()
getSession in interface goldengate.common.file.FileInterfacegetSession in class goldengate.common.file.filesystembased.FilesystemBasedFileImpl
public boolean canRead()
throws goldengate.common.command.exception.CommandAbstractException
canRead in interface goldengate.common.file.FileInterfacecanRead in class goldengate.common.file.filesystembased.FilesystemBasedFileImplgoldengate.common.command.exception.CommandAbstractException
public boolean canWrite()
throws goldengate.common.command.exception.CommandAbstractException
canWrite in interface goldengate.common.file.FileInterfacecanWrite in class goldengate.common.file.filesystembased.FilesystemBasedFileImplgoldengate.common.command.exception.CommandAbstractException
public boolean delete()
throws goldengate.common.command.exception.CommandAbstractException
delete in interface goldengate.common.file.FileInterfacedelete in class goldengate.common.file.filesystembased.FilesystemBasedFileImplgoldengate.common.command.exception.CommandAbstractException
public boolean exists()
throws goldengate.common.command.exception.CommandAbstractException
exists in interface goldengate.common.file.FileInterfaceexists in class goldengate.common.file.filesystembased.FilesystemBasedFileImplgoldengate.common.command.exception.CommandAbstractExceptionprotected FileChannel getFileChannel()
getFileChannel in class goldengate.common.file.filesystembased.FilesystemBasedFileImplprotected RandomAccessFile getRandomFile()
getRandomFile in class goldengate.common.file.filesystembased.FilesystemBasedFileImplprotected FileOutputStream getFileOutputStream(boolean append)
getFileOutputStream in class goldengate.common.file.filesystembased.FilesystemBasedFileImplappend - True if the FileOutputStream should be in append mode
public boolean isDirectory()
throws goldengate.common.command.exception.CommandAbstractException
isDirectory in interface goldengate.common.file.FileInterfaceisDirectory in class goldengate.common.file.filesystembased.FilesystemBasedFileImplgoldengate.common.command.exception.CommandAbstractException
public boolean isFile()
throws goldengate.common.command.exception.CommandAbstractException
isFile in interface goldengate.common.file.FileInterfaceisFile in class goldengate.common.file.filesystembased.FilesystemBasedFileImplgoldengate.common.command.exception.CommandAbstractException
public long length()
throws goldengate.common.command.exception.CommandAbstractException
length in interface goldengate.common.file.FileInterfacelength in class goldengate.common.file.filesystembased.FilesystemBasedFileImplgoldengate.common.command.exception.CommandAbstractException
public boolean renameTo(String path)
throws goldengate.common.command.exception.CommandAbstractException
renameTo in interface goldengate.common.file.FileInterfacerenameTo in class goldengate.common.file.filesystembased.FilesystemBasedFileImplgoldengate.common.command.exception.CommandAbstractException
public boolean renameTo(String path,
boolean external)
throws goldengate.common.command.exception.CommandAbstractException
path - external - if True, the path is outside authentication control
goldengate.common.command.exception.CommandAbstractException
public void replaceFilename(String filename,
boolean isExternal)
throws goldengate.common.command.exception.CommandAbstractException
filename - isExternal -
goldengate.common.command.exception.CommandAbstractException
public boolean closeFile()
throws goldengate.common.command.exception.CommandAbstractException
closeFile in interface goldengate.common.file.FileInterfacecloseFile in class goldengate.common.file.filesystembased.FilesystemBasedFileImplgoldengate.common.command.exception.CommandAbstractExceptionpublic boolean isExternal()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||