Package com.logicaldoc.importfolder.ftp
Class FtpFile
- java.lang.Object
-
- org.apache.commons.net.ftp.FTPFile
-
- com.logicaldoc.importfolder.ftp.FtpFile
-
- All Implemented Interfaces:
Serializable
public class FtpFile extends org.apache.commons.net.ftp.FTPFile
Represents a file in the FTP or FTPS protocol- Since:
- 8.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getGroup()
int
getHardLinkCount()
String
getLink()
String
getName()
String
getPath()
String
getRawListing()
long
getSize()
Calendar
getTimestamp()
int
getType()
String
getUser()
org.apache.commons.net.ftp.FTPFile
getWrappedFile()
int
hashCode()
boolean
hasPermission(int access, int permission)
boolean
isDirectory()
boolean
isFile()
boolean
isSymbolicLink()
boolean
isUnknown()
boolean
isValid()
void
setGroup(String group)
void
setHardLinkCount(int links)
void
setLink(String link)
void
setName(String name)
void
setPermission(int access, int permission, boolean value)
void
setRawListing(String rawListing)
void
setSize(long size)
void
setTimestamp(Calendar date)
void
setType(int type)
void
setUser(String user)
String
toFormattedString()
String
toFormattedString(String arg0)
String
toString()
-
-
-
Constructor Detail
-
FtpFile
public FtpFile(String path, org.apache.commons.net.ftp.FTPFile wrappedFile)
-
-
Method Detail
-
getGroup
public String getGroup()
- Overrides:
getGroup
in classorg.apache.commons.net.ftp.FTPFile
-
getHardLinkCount
public int getHardLinkCount()
- Overrides:
getHardLinkCount
in classorg.apache.commons.net.ftp.FTPFile
-
getLink
public String getLink()
- Overrides:
getLink
in classorg.apache.commons.net.ftp.FTPFile
-
getName
public String getName()
- Overrides:
getName
in classorg.apache.commons.net.ftp.FTPFile
-
getRawListing
public String getRawListing()
- Overrides:
getRawListing
in classorg.apache.commons.net.ftp.FTPFile
-
getSize
public long getSize()
- Overrides:
getSize
in classorg.apache.commons.net.ftp.FTPFile
-
getTimestamp
public Calendar getTimestamp()
- Overrides:
getTimestamp
in classorg.apache.commons.net.ftp.FTPFile
-
getType
public int getType()
- Overrides:
getType
in classorg.apache.commons.net.ftp.FTPFile
-
getUser
public String getUser()
- Overrides:
getUser
in classorg.apache.commons.net.ftp.FTPFile
-
hasPermission
public boolean hasPermission(int access, int permission)
- Overrides:
hasPermission
in classorg.apache.commons.net.ftp.FTPFile
-
isDirectory
public boolean isDirectory()
- Overrides:
isDirectory
in classorg.apache.commons.net.ftp.FTPFile
-
isFile
public boolean isFile()
- Overrides:
isFile
in classorg.apache.commons.net.ftp.FTPFile
-
isSymbolicLink
public boolean isSymbolicLink()
- Overrides:
isSymbolicLink
in classorg.apache.commons.net.ftp.FTPFile
-
isUnknown
public boolean isUnknown()
- Overrides:
isUnknown
in classorg.apache.commons.net.ftp.FTPFile
-
isValid
public boolean isValid()
- Overrides:
isValid
in classorg.apache.commons.net.ftp.FTPFile
-
setGroup
public void setGroup(String group)
- Overrides:
setGroup
in classorg.apache.commons.net.ftp.FTPFile
-
setHardLinkCount
public void setHardLinkCount(int links)
- Overrides:
setHardLinkCount
in classorg.apache.commons.net.ftp.FTPFile
-
setLink
public void setLink(String link)
- Overrides:
setLink
in classorg.apache.commons.net.ftp.FTPFile
-
setName
public void setName(String name)
- Overrides:
setName
in classorg.apache.commons.net.ftp.FTPFile
-
setPermission
public void setPermission(int access, int permission, boolean value)
- Overrides:
setPermission
in classorg.apache.commons.net.ftp.FTPFile
-
setRawListing
public void setRawListing(String rawListing)
- Overrides:
setRawListing
in classorg.apache.commons.net.ftp.FTPFile
-
setSize
public void setSize(long size)
- Overrides:
setSize
in classorg.apache.commons.net.ftp.FTPFile
-
setTimestamp
public void setTimestamp(Calendar date)
- Overrides:
setTimestamp
in classorg.apache.commons.net.ftp.FTPFile
-
setType
public void setType(int type)
- Overrides:
setType
in classorg.apache.commons.net.ftp.FTPFile
-
setUser
public void setUser(String user)
- Overrides:
setUser
in classorg.apache.commons.net.ftp.FTPFile
-
toFormattedString
public String toFormattedString()
- Overrides:
toFormattedString
in classorg.apache.commons.net.ftp.FTPFile
-
toFormattedString
public String toFormattedString(String arg0)
- Overrides:
toFormattedString
in classorg.apache.commons.net.ftp.FTPFile
-
toString
public String toString()
- Overrides:
toString
in classorg.apache.commons.net.ftp.FTPFile
-
getPath
public String getPath()
-
getWrappedFile
public org.apache.commons.net.ftp.FTPFile getWrappedFile()
-
-