com.tivoli.twg.filetransfer
Class FileAttrs

java.lang.Object
  extended bycom.tivoli.twg.filetransfer.FileAttrs

public class FileAttrs
extends java.lang.Object

Simple structure to hold File Attributes data, such as file size, last modified time, and read/write permissions.


Field Summary
 int day
          Day of the file's last modified time (1-31).
 long flags
          Attribute flags (Read Only, Archive, Hidden, System).
 int hours
          Hours of the file's last modified time.
 int hundredths
          Hundredths of the file's last modified time.
 boolean link
          Get whether or not this file is a symbolic link.
 java.lang.String linkName
          If this file is a link, this is the file it points to.
 int minutes
          Minutes of the file's last modified time.
 int mode
          File permissions.
 int month
          Month of the file's last modified time (1-12).
 int seconds
          Seconds of the file's last modified time.
 long size
          File size.
 short timezone
          TimeZone of the file's last modified time.
 int weekday
          Weekday of the file's last modified time.
 int year
          Year of the file's last modified time.
 
Constructor Summary
FileAttrs()
          Initialize all data to zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

public long size
File size.


flags

public long flags
Attribute flags (Read Only, Archive, Hidden, System).


hours

public int hours
Hours of the file's last modified time. Hours corresponds to the 24-hour clock (0-23).

See Also:
java.util.Calendar.HOUR_OF_DAY

minutes

public int minutes
Minutes of the file's last modified time.


seconds

public int seconds
Seconds of the file's last modified time.


hundredths

public int hundredths
Hundredths of the file's last modified time.

Note: This value is not currently used by File Transfer.


day

public int day
Day of the file's last modified time (1-31).

See Also:
java.util.Calendar.DAY_OF_MONTH

month

public int month
Month of the file's last modified time (1-12).


year

public int year
Year of the file's last modified time.


timezone

public short timezone
TimeZone of the file's last modified time.

Note: This value is not currently used by File Transfer.


weekday

public int weekday
Weekday of the file's last modified time.

Note: This value is not currently used by File Transfer.


mode

public int mode
File permissions. Set to -1 when not to be used (Windows, OS/2, etc).

For Unix and AS/400 only.


link

public boolean link
Get whether or not this file is a symbolic link.

For Unix and AS/400 only.


linkName

public java.lang.String linkName
If this file is a link, this is the file it points to.

For Unix and AS/400 only.

Constructor Detail

FileAttrs

public FileAttrs()
Initialize all data to zero.