com.radinks.net
Class FileAttrs

java.lang.Object
  extended bycom.radinks.net.FileAttrs

public class FileAttrs
extends java.lang.Object

Manages Attributes of files on the server.


Constructor Summary
FileAttrs()
          default constructor.
 
Method Summary
 int getFlags()
          Not yet fully implemented.
 int getGId()
           
 int getInode()
           
 long getMTime()
           
 java.lang.String getMtimeString()
           
 long getSize()
           
 int getUId()
           
 boolean isDir()
           
 boolean parseFlags(java.lang.String s)
          Parses the flags for each file
 void setDir(boolean dir)
           
 void setGId(int GId)
           
 void setInode(int inode)
           
 void setSize(long size)
           
 void setTime(long seconds)
           
 void setUId(int UId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAttrs

public FileAttrs()
default constructor.

Method Detail

parseFlags

public boolean parseFlags(java.lang.String s)
Parses the flags for each file

Parameters:
s - - Flags
Returns:
not used at the moment.

isDir

public boolean isDir()
Returns:
true if the current file is a directory.

getSize

public long getSize()
Returns:
size of the file

getMTime

public long getMTime()
Returns:
modification time of the file in milli seconds.

getUId

public int getUId()
Returns:
file owner's user id.

getGId

public int getGId()
Returns:
group id.

getMtimeString

public java.lang.String getMtimeString()
Returns:
the modification time as a date string.

getFlags

public int getFlags()
Not yet fully implemented.

Returns:
the flags

setInode

public void setInode(int inode)
Parameters:
inode -

getInode

public int getInode()
Returns:
inode number for the current file.

setGId

public void setGId(int GId)

setUId

public void setUId(int UId)

setSize

public void setSize(long size)

setDir

public void setDir(boolean dir)

setTime

public void setTime(long seconds)


Rad Inks FTP library
Copyright (c) 2003,2004 Rad Inks (Pvt) Ltd.