KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > ssh2 > sftp > AttribTypes


1
2 package ch.ethz.ssh2.sftp;
3
4 /**
5  *
6  * Types for the 'type' field in the SFTP ATTRS data type.
7  * <p>
8  * "<i>On a POSIX system, these values would be derived from the mode field
9  * of the stat structure. SPECIAL should be used for files that are of
10  * a known type which cannot be expressed in the protocol. UNKNOWN
11  * should be used if the type is not known.</i>"
12  *
13  * @author Christian Plattner, plattner@inf.ethz.ch
14  * @version $Id: AttribTypes.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $
15  *
16  */

17 public class AttribTypes
18 {
19     public static final int SSH_FILEXFER_TYPE_REGULAR = 1;
20     public static final int SSH_FILEXFER_TYPE_DIRECTORY = 2;
21     public static final int SSH_FILEXFER_TYPE_SYMLINK = 3;
22     public static final int SSH_FILEXFER_TYPE_SPECIAL = 4;
23     public static final int SSH_FILEXFER_TYPE_UNKNOWN = 5;
24     public static final int SSH_FILEXFER_TYPE_SOCKET = 6;
25     public static final int SSH_FILEXFER_TYPE_CHAR_DEVICE = 7;
26     public static final int SSH_FILEXFER_TYPE_BLOCK_DEVICE = 8;
27     public static final int SSH_FILEXFER_TYPE_FIFO = 9;
28 }
29
Popular Tags