01: package ch.ethz.ssh2.sftp;
02:
03: /**
04: *
05: * Values for the 'text-hint' field in the SFTP ATTRS data type.
06: *
07: * @author Christian Plattner, plattner@inf.ethz.ch
08: * @version $Id: AttrTextHints.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $
09: *
10: */
11: public class AttrTextHints {
12: /**
13: * The server knows the file is a text file, and should be opened
14: * using the SSH_FXF_ACCESS_TEXT_MODE flag.
15: */
16: public static final int SSH_FILEXFER_ATTR_KNOWN_TEXT = 0x00;
17:
18: /**
19: * The server has applied a heuristic or other mechanism and
20: * believes that the file should be opened with the
21: * SSH_FXF_ACCESS_TEXT_MODE flag.
22: */
23: public static final int SSH_FILEXFER_ATTR_GUESSED_TEXT = 0x01;
24:
25: /**
26: * The server knows the file has binary content.
27: */
28: public static final int SSH_FILEXFER_ATTR_KNOWN_BINARY = 0x02;
29:
30: /**
31: * The server has applied a heuristic or other mechanism and
32: * believes has binary content, and should not be opened with the
33: * SSH_FXF_ACCESS_TEXT_MODE flag.
34: */
35: public static final int SSH_FILEXFER_ATTR_GUESSED_BINARY = 0x03;
36: }
|