|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.glub.secureftp.bean.RemoteFile
public class RemoteFile
The RemoteFile
class is an abstract representation of a file
on the FTP server.
Constructor Summary | |
---|---|
RemoteFile()
Create an empty RemoteFile object. |
|
RemoteFile(String fileName)
Create a RemoteFile object. |
|
RemoteFile(String permissions,
int linkCount,
String user,
String group,
long fileSize,
Calendar date,
String fileName,
String fullLine)
Create a RemoteFile object. |
Method Summary | |
---|---|
String |
getAlias()
Get the alias name of the remote file. |
Calendar |
getDate()
Get the modification date of the remote file. |
String |
getFileName()
Get the file name of the remote file. |
long |
getFileSize()
Get the file size of the remote file. |
String |
getFullLine()
Get the full (unparsed) line listing from the FTP server. |
String |
getGroup()
Get the group owner of the remote file. |
int |
getLinkCount()
Get the link (or reference) count of the remote file. |
Object |
getMetaData(Object key)
Get stored metadata. |
String |
getPermissions()
Get the permissions of the remote file. |
String |
getUser()
Get the user owner of the remote file. |
boolean |
isBlockSpecial()
Is this file a block special file? |
boolean |
isCharSpecial()
Is this file a character special file? |
boolean |
isDirectory()
Is this file a directory? |
boolean |
isDoor()
Is this file a door? |
boolean |
isFile()
Is this file an ordinary file? |
boolean |
isKnownFileType()
Is this a known file type? |
boolean |
isLink()
Is this file a symbolic link? |
boolean |
isPipe()
Is this file a pipe? |
boolean |
isSocket()
Is this file a socket? |
void |
setAlias(String alias)
Set the alias name of the remote file. |
void |
setDate(Calendar date)
Set the modification date of the remote file. |
void |
setFileName(String fileName)
Set the file name of the remote file. |
void |
setFileSize(long fileSize)
Set the file size of the remote file. |
void |
setFullLine(String fullLine)
Set the full (unparsed) line listing from the FTP server. |
void |
setGroup(String group)
Set the group owner of the remote file. |
void |
setLinkCount(int linkCount)
Set the link (or reference) count of the remote file. |
void |
setMetaData(Object key,
Object value)
A place to store your own metadata. |
void |
setPermissions(String permissions)
Set the permissions of the remote file. |
void |
setUser(String user)
Set the user owner of the remote file. |
String |
toString()
Simple display of remote file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteFile()
RemoteFile
object.
public RemoteFile(String fileName)
RemoteFile
object.
fileName
- the name of the remote file.public RemoteFile(String permissions, int linkCount, String user, String group, long fileSize, Calendar date, String fileName, String fullLine)
RemoteFile
object.
permissions
- the permissions of the remote file.linkCount
- the reference count of the remote file.user
- the user owner of the remote file.group
- the group owner of the remote file.fileSize
- the size of the remote file.date
- the modification date of the remote file.fileName
- the name of the remote file.fullLine
- the (unparsed) line as returned from the server.Method Detail |
---|
public String toString()
toString
in class Object
public String getPermissions()
public void setPermissions(String permissions)
permissions
- the permissions.public int getLinkCount()
public void setLinkCount(int linkCount)
linkCount
- the link count.public String getUser()
public void setUser(String user)
user
- the user owner.public String getGroup()
public void setGroup(String group)
group
- the user owner.public long getFileSize()
Note: if the fileSize == -1, the other metadata may be inaccurate.
public void setFileSize(long fileSize)
fileSize
- the size of the file.public Calendar getDate()
public void setDate(Calendar date)
date
- the modification date.public String getFileName()
public void setFileName(String fileName)
fileName
- the file name.public String getAlias()
public void setAlias(String alias)
alias
- the name of the alias.public String getFullLine()
public void setFullLine(String fullLine)
fullLine
- the full (unparsed) line.public void setMetaData(Object key, Object value)
public Object getMetaData(Object key)
public boolean isKnownFileType()
public boolean isDirectory()
public boolean isDoor()
public boolean isLink()
public boolean isBlockSpecial()
public boolean isCharSpecial()
public boolean isPipe()
public boolean isSocket()
public boolean isFile()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |