Mercurial > 510Connectbot
comparison src/com/trilead/ssh2/sftp/AttrTextHints.java @ 0:0ce5cc452d02
initial version
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 22 May 2014 10:41:19 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0ce5cc452d02 |
---|---|
1 | |
2 package com.trilead.ssh2.sftp; | |
3 | |
4 /** | |
5 * | |
6 * Values for the 'text-hint' field in the SFTP ATTRS data type. | |
7 * | |
8 * @author Christian Plattner, plattner@trilead.com | |
9 * @version $Id: AttrTextHints.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ | |
10 * | |
11 */ | |
12 public class AttrTextHints { | |
13 /** | |
14 * The server knows the file is a text file, and should be opened | |
15 * using the SSH_FXF_ACCESS_TEXT_MODE flag. | |
16 */ | |
17 public static final int SSH_FILEXFER_ATTR_KNOWN_TEXT = 0x00; | |
18 | |
19 /** | |
20 * The server has applied a heuristic or other mechanism and | |
21 * believes that the file should be opened with the | |
22 * SSH_FXF_ACCESS_TEXT_MODE flag. | |
23 */ | |
24 public static final int SSH_FILEXFER_ATTR_GUESSED_TEXT = 0x01; | |
25 | |
26 /** | |
27 * The server knows the file has binary content. | |
28 */ | |
29 public static final int SSH_FILEXFER_ATTR_KNOWN_BINARY = 0x02; | |
30 | |
31 /** | |
32 * The server has applied a heuristic or other mechanism and | |
33 * believes has binary content, and should not be opened with the | |
34 * SSH_FXF_ACCESS_TEXT_MODE flag. | |
35 */ | |
36 public static final int SSH_FILEXFER_ATTR_GUESSED_BINARY = 0x03; | |
37 } |