KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package ch.ethz.ssh2.sftp;
3
4 /**
5  *
6  * Values for the 'text-hint' field in the SFTP ATTRS data type.
7  *
8  * @author Christian Plattner, plattner@inf.ethz.ch
9  * @version $Id: AttrTextHints.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $
10  *
11  */

12 public class AttrTextHints
13 {
14     /**
15      * The server knows the file is a text file, and should be opened
16      * using the SSH_FXF_ACCESS_TEXT_MODE flag.
17      */

18     public static final int SSH_FILEXFER_ATTR_KNOWN_TEXT = 0x00;
19
20     /**
21      * The server has applied a heuristic or other mechanism and
22      * believes that the file should be opened with the
23      * SSH_FXF_ACCESS_TEXT_MODE flag.
24      */

25     public static final int SSH_FILEXFER_ATTR_GUESSED_TEXT = 0x01;
26
27     /**
28      * The server knows the file has binary content.
29      */

30     public static final int SSH_FILEXFER_ATTR_KNOWN_BINARY = 0x02;
31
32     /**
33      * The server has applied a heuristic or other mechanism and
34      * believes has binary content, and should not be opened with the
35      * SSH_FXF_ACCESS_TEXT_MODE flag.
36      */

37     public static final int SSH_FILEXFER_ATTR_GUESSED_BINARY = 0x03;
38 }
39
Popular Tags