|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jscape.inet.sftp.packets.SftpFileAttributes
public class SftpFileAttributes
The SFTP file attributes.
| Nested Class Summary | |
|---|---|
static class |
SftpFileAttributes.AttributePresenceFlags
The attribute presence flags. |
| Constructor Summary | |
|---|---|
SftpFileAttributes()
|
|
| Method Summary | |
|---|---|
static SftpFileAttributes |
forFile(JFile file)
Obtains the file attributes for the specified file. |
long |
getAtime()
Obtains the file access time. |
byte[] |
getExtension(java.lang.String type)
Obtains the file extension data. |
SftpFileAttributes.AttributePresenceFlags |
getFlags()
|
int |
getGid()
Obtains the file gid. |
long |
getMtime()
Obtains the file modification time. |
JFilePermissions |
getPermissions()
Obtains the file permissions. |
long |
getSize()
Obtains the file size. |
int |
getUid()
Obtains the file uid. |
static SftpFileAttributes |
readFrom(java.io.InputStream in,
java.lang.String charset)
Reads the file attributes from the stream. |
void |
setAtime(long atime)
Setups the file access time. |
void |
setExtension(java.lang.String type,
byte[] data)
Setups the file extension attribute. |
void |
setGid(int gid)
Setups the file gid. |
void |
setMtime(long mtime)
Setups the file modification time. |
void |
setPermissions(JFilePermissions permissions)
Setups the file permissions. |
void |
setSize(long size)
Setups the file size. |
void |
setUid(int uid)
Setups the file uid. |
void |
setupFileAttributes(JFile file)
Setups the attributes for the specified file. |
java.lang.String |
toString()
|
void |
writeTo(java.io.OutputStream out,
java.lang.String charset)
Writes the current object to the specified stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SftpFileAttributes()
| Method Detail |
|---|
public static SftpFileAttributes readFrom(java.io.InputStream in,
java.lang.String charset)
throws java.io.IOException
in - the source input stream
java.io.IOException - if an I/O error occurspublic static SftpFileAttributes forFile(JFile file)
file - the target file
public SftpFileAttributes.AttributePresenceFlags getFlags()
public void setSize(long size)
size - the file sizepublic long getSize()
public void setUid(int uid)
uid - the file uidpublic int getUid()
public void setGid(int gid)
gid - the file gidpublic int getGid()
public void setPermissions(JFilePermissions permissions)
permissions - the file permissionspublic JFilePermissions getPermissions()
public void setAtime(long atime)
atime - the file access timepublic long getAtime()
public void setMtime(long mtime)
mtime - the file modification timepublic long getMtime()
public void setExtension(java.lang.String type,
byte[] data)
type - the extension attribute namedata - the extension datapublic byte[] getExtension(java.lang.String type)
type - the extension name
public void writeTo(java.io.OutputStream out,
java.lang.String charset)
throws java.io.IOException
out - the output stream
java.io.IOException - if I/O error occuredpublic void setupFileAttributes(JFile file)
file - the target filepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||