|
|||||||||
| Home >> All >> com >> flexstor >> common >> io >> xfile >> [ ftp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.flexstor.common.io.xfile.ftp
Class FtpFile

java.lang.Objectcom.flexstor.common.io.xfile.ftp.FtpFile
- All Implemented Interfaces:
- com.flexstor.common.io.xfile.FlexXFileI
- public class FtpFile
- extends java.lang.Object
- implements com.flexstor.common.io.xfile.FlexXFileI
- extends java.lang.Object
| Field Summary | |
private static boolean |
debug
|
private java.lang.String |
failureMessage
|
private static java.lang.String |
FILE_SYSTEM_NAME
|
private boolean |
isDirectory
|
private boolean |
isNew
|
private long |
nFileLength
|
private long |
nLinks
|
private java.lang.String |
presentDirectory
|
private java.lang.String |
strFile
|
private java.lang.String |
strFileGroup
|
private java.lang.String |
strFileName
|
private java.lang.String |
strFileOwner
|
private java.lang.String |
strFilePermissions
|
private java.lang.String |
strModDate
|
private java.lang.String |
strModMonth
|
private java.lang.String |
strModTime
|
protected java.lang.String |
strServerName
|
protected int |
strServerPort
|
| Constructor Summary | |
FtpFile(FtpFile file,
java.lang.String str)
|
|
FtpFile(java.lang.String str)
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
strFile
private java.lang.String strFile
isDirectory
private boolean isDirectory
presentDirectory
private java.lang.String presentDirectory
strFileName
private java.lang.String strFileName
strModTime
private java.lang.String strModTime
strModDate
private java.lang.String strModDate
strModMonth
private java.lang.String strModMonth
strFileGroup
private java.lang.String strFileGroup
strFileOwner
private java.lang.String strFileOwner
strFilePermissions
private java.lang.String strFilePermissions
nFileLength
private long nFileLength
nLinks
private long nLinks
FILE_SYSTEM_NAME
private static java.lang.String FILE_SYSTEM_NAME
isNew
private boolean isNew
debug
private static final boolean debug
- See Also:
- Constant Field Values
failureMessage
private final java.lang.String failureMessage
- See Also:
- Constant Field Values
strServerName
protected java.lang.String strServerName
strServerPort
protected int strServerPort
| Constructor Detail |
FtpFile
public FtpFile(FtpFile file, java.lang.String str)
FtpFile
public FtpFile(java.lang.String str)
| Method Detail |
collectInitialInfo
private void collectInitialInfo()
lastModified
public long lastModified()
- Specified by:
lastModifiedin interfacecom.flexstor.common.io.xfile.FlexXFileI
getModTime
public java.lang.String getModTime()
- Returns the time, when the file was modified last time.
getModDate
public java.lang.String getModDate()
- Returns the date on which the file is modified.
getModMonth
public java.lang.String getModMonth()
- Returns the month, in which the file was modified.
length
public long length()
- Returns the length of the file.
- Specified by:
lengthin interfacecom.flexstor.common.io.xfile.FlexXFileI
getFileGroup
public java.lang.String getFileGroup()
- Returns the name of the group this file belongs to.
getFileOwner
public java.lang.String getFileOwner()
- Returns owner of the file.
getFileLinks
public long getFileLinks()
- Returns number of links to the file.
getFilePermissions
public java.lang.String getFilePermissions()
- Returns file permission in format -rwxrwxrwx.
getParentDirectory
private java.lang.String getParentDirectory(java.lang.String file)
getReader
public FtpReader getReader()
getInputStream
public FtpInputStream getInputStream()
getWriterToAppend
public FtpWriter getWriterToAppend()
getBufferedInputStream
public java.io.BufferedInputStream getBufferedInputStream() throws java.io.IOException
- Specified by:
getBufferedInputStreamin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedInputStream
public java.io.BufferedInputStream getBufferedInputStream(int bufferSize) throws java.io.IOException
- Specified by:
getBufferedInputStreamin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedOutputStream
public java.io.BufferedOutputStream getBufferedOutputStream(int bufferSize) throws java.io.IOException
- Specified by:
getBufferedOutputStreamin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedReader
public java.io.BufferedReader getBufferedReader(int bufferSize) throws java.io.IOException
- Specified by:
getBufferedReaderin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedWriter
public java.io.BufferedWriter getBufferedWriter(int bufferSize) throws java.io.IOException
- Specified by:
getBufferedWriterin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedOutputStream
public java.io.BufferedOutputStream getBufferedOutputStream() throws java.io.IOException
- Specified by:
getBufferedOutputStreamin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedReader
public java.io.BufferedReader getBufferedReader() throws java.io.IOException
- Specified by:
getBufferedReaderin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedWriter
public java.io.BufferedWriter getBufferedWriter() throws java.io.IOException
- Specified by:
getBufferedWriterin interfacecom.flexstor.common.io.xfile.FlexXFileI
getWriter
public FtpWriter getWriter()
getOutputStream
public FtpOutputStream getOutputStream()
delete
public boolean delete()
- Specified by:
deletein interfacecom.flexstor.common.io.xfile.FlexXFileI
exists
public boolean exists()
- Specified by:
existsin interfacecom.flexstor.common.io.xfile.FlexXFileI
getFileSystemName
public java.lang.String getFileSystemName()
- Specified by:
getFileSystemNamein interfacecom.flexstor.common.io.xfile.FlexXFileI
extendedList
public java.lang.String[] extendedList()
- An improved method provided to give isDir/isFile information along with the list.
- Specified by:
extendedListin interfacecom.flexstor.common.io.xfile.FlexXFileI
list
public java.lang.String[] list()
- Specified by:
listin interfacecom.flexstor.common.io.xfile.FlexXFileI
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolutein interfacecom.flexstor.common.io.xfile.FlexXFileI
isLocalPath
public boolean isLocalPath()
- Specified by:
isLocalPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
isFile
public boolean isFile()
- Specified by:
isFilein interfacecom.flexstor.common.io.xfile.FlexXFileI
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfacecom.flexstor.common.io.xfile.FlexXFileI
getAbsolutePath
public java.lang.String getAbsolutePath()
- Specified by:
getAbsolutePathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getServer
public java.lang.String getServer()
- Specified by:
getServerin interfacecom.flexstor.common.io.xfile.FlexXFileI
extendedList
public java.lang.String[] extendedList(com.flexstor.common.io.xfile.XFilenameFilterI filter)
- Specified by:
extendedListin interfacecom.flexstor.common.io.xfile.FlexXFileI
list
public java.lang.String[] list(com.flexstor.common.io.xfile.XFilenameFilterI filter)
- Specified by:
listin interfacecom.flexstor.common.io.xfile.FlexXFileI
getName
public java.lang.String getName()
- Specified by:
getNamein interfacecom.flexstor.common.io.xfile.FlexXFileI
getParent
public java.lang.String getParent()
- Specified by:
getParentin interfacecom.flexstor.common.io.xfile.FlexXFileI
canRead
public boolean canRead()
- Specified by:
canReadin interfacecom.flexstor.common.io.xfile.FlexXFileI
getLocalParent
public java.lang.String getLocalParent()
- Specified by:
getLocalParentin interfacecom.flexstor.common.io.xfile.FlexXFileI
getLocalPath
public java.lang.String getLocalPath()
- Specified by:
getLocalPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getUNCPath
public java.lang.String getUNCPath()
- Specified by:
getUNCPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getPath
public java.lang.String getPath()
- Specified by:
getPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getLocalUNCPath
public java.lang.String getLocalUNCPath()
- Specified by:
getLocalUNCPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
mkdir
public boolean mkdir()
- Specified by:
mkdirin interfacecom.flexstor.common.io.xfile.FlexXFileI
mkdirs
public boolean mkdirs()
- Specified by:
mkdirsin interfacecom.flexstor.common.io.xfile.FlexXFileI
mkStru
private boolean mkStru(java.lang.String path, FtpSession session)
renameTo
public boolean renameTo(com.flexstor.common.io.xfile.FlexXFileI file)
- Specified by:
renameToin interfacecom.flexstor.common.io.xfile.FlexXFileI
canWrite
public boolean canWrite()
- Specified by:
canWritein interfacecom.flexstor.common.io.xfile.FlexXFileI
getFileSeparator
public java.lang.String getFileSeparator()
- Specified by:
getFileSeparatorin interfacecom.flexstor.common.io.xfile.FlexXFileI
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
printArray
public static void printArray(java.lang.String[] arr)
main
public static void main(java.lang.String[] args) throws java.lang.Exception
private static void print(java.lang.String string)
|
|||||||||
| Home >> All >> com >> flexstor >> common >> io >> xfile >> [ ftp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.flexstor.common.io.xfile.ftp.FtpFile