|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgoldengate.common.file.AbstractDir
public abstract class AbstractDir

Abstract Main Implementation of Directory
| Field Summary | |
|---|---|
protected String |
currentDir
Current Directory |
protected static Boolean |
ISUNIX
Hack to say Windows or Unix (root like X:\ or /) |
protected OptsMLSxInterface |
optsMLSx
Opts command for MLSx. (-1) means not supported, 0 supported but not active, 1 supported and active |
protected static File[] |
roots
Roots for Windows system |
protected SessionInterface |
session
SessionInterface |
| Fields inherited from interface goldengate.common.file.DirInterface |
|---|
SEPARATOR, SEPARATORCHAR |
| Constructor Summary | |
|---|---|
AbstractDir()
|
|
| Method Summary | |
|---|---|
boolean |
changeParentDirectory()
Change for parent directory |
void |
checkIdentify()
Check if the authentication is correct |
void |
clear()
Set empty this FtpDir, mark it unReady. |
protected String |
consolidatePath(String path)
Consolidate Path as relative or absolute path to an absolute path |
protected String |
getCanonicalPath(File dir)
Construct the CanonicalPath without taking into account symbolic link |
protected File |
getCorrespondingRoot(File file)
|
OptsMLSxInterface |
getOptsMLSx()
|
String |
getPwd()
|
SessionInterface |
getSession()
|
void |
initAfterIdentification()
Init DirInterface after authentication is done |
protected static void |
initWindowsSupport()
Init Windows Support |
boolean |
isAbsoluteWindows(String path)
|
static String |
normalizePath(String path)
Normalize Path to Internal unique representation |
FileInterface |
setFile(String path,
boolean append)
Set a path as the current FileInterface |
protected String |
validatePath(File dir)
Same as validatePath but from a FileInterface |
String |
validatePath(String path)
Construct and Check if the given path is valid from business point of view (see AuthInterface) |
protected abstract List<String> |
wildcardFiles(String pathWithWildcard)
Finds all files matching a wildcard expression (based on '?' |
| 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.DirInterface |
|---|
canRead, canWrite, changeDirectory, changeDirectoryNotChecked, exists, fileFull, getCRC, getFreeSpace, getMD5, getModificationTime, getSHA1, isDirectory, isFile, list, listFull, mkdir, newFile, rmdir, setUniqueFile |
| Field Detail |
|---|
protected String currentDir
protected SessionInterface session
protected OptsMLSxInterface optsMLSx
protected static Boolean ISUNIX
protected static File[] roots
| Constructor Detail |
|---|
public AbstractDir()
| Method Detail |
|---|
protected static void initWindowsSupport()
protected File getCorrespondingRoot(File file)
file -
public static String normalizePath(String path)
path -
public SessionInterface getSession()
getSession in interface DirInterface
public String validatePath(String path)
throws CommandAbstractException
DirInterfaceAuthInterface)
validatePath in interface DirInterfaceCommandAbstractExceptionpublic boolean isAbsoluteWindows(String path)
path -
protected String consolidatePath(String path)
throws CommandAbstractException
path -
CommandAbstractExceptionprotected String getCanonicalPath(File dir)
dir -
protected String validatePath(File dir)
throws CommandAbstractException
dir -
CommandAbstractException
protected abstract List<String> wildcardFiles(String pathWithWildcard)
throws CommandAbstractException
pathWithWildcard - The wildcard expression with a business path.
CommandAbstractException
public String getPwd()
throws CommandAbstractException
getPwd in interface DirInterfaceCommandAbstractException
public boolean changeParentDirectory()
throws CommandAbstractException
DirInterface
changeParentDirectory in interface DirInterfaceCommandAbstractException
public FileInterface setFile(String path,
boolean append)
throws CommandAbstractException
DirInterface
setFile in interface DirInterfaceappend - True if this file is supposed to be in append mode (APPE),
False in any other cases
CommandAbstractException
public void checkIdentify()
throws Reply530Exception
DirInterface
checkIdentify in interface DirInterfaceReply530Exceptionpublic void clear()
DirInterface
clear in interface DirInterfacepublic void initAfterIdentification()
DirInterface
initAfterIdentification in interface DirInterfacepublic OptsMLSxInterface getOptsMLSx()
getOptsMLSx in interface DirInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||