org.metastatic.rsync.v2
Class FileInfo

java.lang.Object
  |
  +--org.metastatic.rsync.v2.FileInfo
All Implemented Interfaces:
Constants

public class FileInfo
extends Object
implements Constants

Basic information about files that are being sent over the wire. Roughly analogous to 'struct file_struct' in rsync.h.


Field Summary
 String basename
           
 String dirname
           
 int flags
           
 int gid
           
 int inode
           
 long length
           
 String link
           
 int mode
           
 int modtime
           
 int rdev
           
 byte[] sum
           
 int uid
           
 
Fields inherited from interface org.metastatic.rsync.v2.Constants
_S_IFDIR, _S_IFLNK, _S_IFMT, _S_IFREG, AT_ERROR, BLOCK_LENGTH, CHUNK_SIZE, FLAG_DELETE, FLIST_RECEIVE_DONE, FLIST_RECEIVE_FILES, FLIST_RECEIVE_GIDS, FLIST_RECEIVE_UIDS, FLIST_SEND_DONE, FLIST_SEND_FILES, FLIST_SEND_GIDS, FLIST_SEND_UIDS, INPUT_MASK, LONG_NAME, MAX_PROTOCOL_VERSION, MAXPATHLEN, MIN_PROTOCOL_VERSION, OUTPUT_MASK, PROTOCOL_VERSION, RECV_RECEIVE_DELTAS, RECV_RECEIVE_INDEX, RECV_SEND_INDEX, RECV_SEND_SUMS, RECV_WAIT, RSYNCD_AUTHREQD, RSYNCD_EXIT, RSYNCD_GREETING, RSYNCD_OK, RSYNCD_PORT, SAME_DIR, SAME_GID, SAME_MODE, SAME_NAME, SAME_RDEV, SAME_TIME, SAME_UID, SENDER_DONE, SENDER_RECEIVE_INDEX, SENDER_RECEIVE_SUMS, SENDER_SEND_DELTAS, SENDER_SEND_FILE, SENDER_WAIT, SETUP_READ_AUTH, SETUP_READ_DONE, SETUP_READ_GREETING, SETUP_READ_MODULE, SETUP_READ_OPTIONS, SETUP_WRITE_CHALLENGE, SETUP_WRITE_DONE, SETUP_WRITE_ERROR, SETUP_WRITE_GREETING, SETUP_WRITE_MODULES, SETUP_WRITE_OK, SETUP_WRITE_WAIT, STATE_DONE, STATE_INPUT_DONE, STATE_OUTPUT_DONE, STATE_RECEIVE_EXCLUDE, STATE_RECEIVE_FLIST, STATE_RECEIVER, STATE_RECEIVER_INPUT, STATE_RECEIVER_OUTPUT, STATE_SEND_FLIST, STATE_SENDER, STATE_SENDER_INPUT, STATE_SENDER_OUTPUT, STATE_SETUP_PROTOCOL, SUM_LENGTH, URL_PREFIX
 
Constructor Summary
FileInfo()
           
FileInfo(File f)
           
 
Method Summary
 String filename()
           
 String permstring()
           
 boolean S_ISDIR()
           
static boolean S_ISDIR(int mode)
           
 boolean S_ISLNK()
           
static boolean S_ISLNK(int mode)
           
 boolean S_ISREG()
           
static boolean S_ISREG(int mode)
           
 String timestring()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

flags

public int flags

modtime

public int modtime

length

public long length

inode

public int inode

rdev

public int rdev

mode

public int mode

uid

public int uid

gid

public int gid

basename

public String basename

dirname

public String dirname

link

public String link

sum

public byte[] sum
Constructor Detail

FileInfo

public FileInfo()

FileInfo

public FileInfo(File f)
         throws IOException
Method Detail

S_ISDIR

public static boolean S_ISDIR(int mode)

S_ISLNK

public static boolean S_ISLNK(int mode)

S_ISREG

public static boolean S_ISREG(int mode)

permstring

public String permstring()

timestring

public String timestring()

filename

public String filename()

S_ISDIR

public boolean S_ISDIR()

S_ISLNK

public boolean S_ISLNK()

S_ISREG

public boolean S_ISREG()

toString

public String toString()
Overrides:
toString in class Object