|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.wli.sftp.spi.SFtpFile
public class SFtpFile
This class represents the SFtp File and contains information about that file
Constructor Summary | |
---|---|
SFtpFile()
Default constructor |
|
SFtpFile(String absolutePath)
Constructor |
Method Summary | |
---|---|
boolean |
canRead()
Return whether file can be read or not |
boolean |
canWrite()
Return whether file can be writable or not |
boolean |
equals(Object object)
Checks whether two SFtpClients are equal or not |
String |
getAbsolutePath()
Returns the absolute path of the file |
String |
getFilename()
Returns the file name |
long |
getModifiedTime()
Returns the Modified time of the file |
String |
getParent()
Returns the directory to which this file belongs to |
String |
getStageFilepath()
Returns the path to the file where it is staged |
boolean |
isDirectory()
Checks whether this is a directory or not |
boolean |
isFile()
Checks whether this is a file or not |
boolean |
isLink()
Returns whether this file represents a Unix link |
boolean |
isOpen()
Returns whether this file is opened or not |
boolean |
isSocket()
Returns whether this file represents a Socket |
void |
setAbsolutePath(String absolutePath)
Sets the absolute path for the file |
void |
setDirectory(boolean isDirectory)
Sets whether the file is a directory or not |
void |
setFile(boolean isFile)
Sets whether this is file or not |
void |
setFileName(String filename)
Sets the file name |
void |
setLink(boolean isLink)
Sets whether this file represents a link or not |
void |
setModifiedTime(long time)
Sets the modified time of the file |
void |
setOpen(boolean isOpen)
Sets whether this file is opened or not |
void |
setParent(String parent)
Set the directory to which this file belongs |
void |
setRead(boolean canRead)
Sets whether the file can be read |
void |
setSize(long size)
Sets the size of the file |
void |
setSocket(boolean isSocket)
Sets whether this file represents a socket or not |
void |
setStageFilepath(String filepath)
Sets the path where the file is staged |
void |
setWrite(boolean canWrite)
Sets whether the file can be written |
long |
size()
Returns the size of the file |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SFtpFile()
public SFtpFile(String absolutePath)
absolutePath
- - Absolute path of the fileMethod Detail |
---|
public void setAbsolutePath(String absolutePath)
absolutePath
- - absolute path of the filepublic String getAbsolutePath()
public String getFilename()
public void setFileName(String filename)
filename
- - name of the filepublic void setSize(long size)
size
- - size of the filepublic long size()
public void setModifiedTime(long time)
time
- - modified timepublic long getModifiedTime()
public void setFile(boolean isFile)
isFile
- - whether is file or notpublic boolean isFile()
public boolean isDirectory()
public void setDirectory(boolean isDirectory)
isDirectory
- - is directory?public boolean canRead()
public void setRead(boolean canRead)
canRead
- - can read the filepublic boolean canWrite()
public void setWrite(boolean canWrite)
canWrite
- - can write the filepublic boolean isLink()
public void setLink(boolean isLink)
isLink
- - whether link or notpublic boolean isSocket()
public void setSocket(boolean isSocket)
isSocket
- - whether socket or notpublic boolean isOpen()
public void setOpen(boolean isOpen)
isOpen
- - whether file is opened or notpublic void setStageFilepath(String filepath)
filepath
- - file path whether file is stagedpublic String getStageFilepath()
public String getParent()
public void setParent(String parent)
parent
- - directory where this file residespublic boolean equals(Object object)
equals
in class Object
object
- - SFtp Client
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |