Java Doc for AttribBits.java in  » Net » Ganymed-SSH-2 » ch » ethz » ssh2 » sftp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » Ganymed SSH 2 » ch.ethz.ssh2.sftp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   ch.ethz.ssh2.sftp.AttribBits

AttribBits
public class AttribBits (Code)
SFTP Attribute Bits for the "attrib-bits" and "attrib-bits-valid" fields of the SFTP ATTR data type.

Yes, these are the "attrib-bits", even though they have "_FLAGS_" in their name. Don't ask - I did not invent it.

"These fields, taken together, reflect various attributes of the file or directory, on the server. Bits not set in 'attrib-bits-valid' MUST be ignored in the 'attrib-bits' field. This allows both the server and the client to communicate only the bits it knows about without inadvertently twiddling bits they don't understand."
author:
   Christian Plattner, plattner@inf.ethz.ch
version:
   $Id: AttribBits.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $



Field Summary
final public static  intSSH_FILEXFER_ATTR_FLAGS_APPEND_ONLY
     Opening the file without either the SSH_FXF_ACCESS_APPEND_DATA or the SSH_FXF_ACCESS_APPEND_DATA_ATOMIC flag (see section 8.1.1.3 of the SFTP standard draft) MUST result in an SSH_FX_INVALID_PARAMETER error.
final public static  intSSH_FILEXFER_ATTR_FLAGS_ARCHIVE
     The file should be included in backup / archive operations.
final public static  intSSH_FILEXFER_ATTR_FLAGS_CASE_INSENSITIVE
     This attribute applies only to directories.
final public static  intSSH_FILEXFER_ATTR_FLAGS_COMPRESSED
     The file is stored on disk using file-system level transparent compression.
final public static  intSSH_FILEXFER_ATTR_FLAGS_ENCRYPTED
     The file is stored on disk using file-system level transparent encryption.
final public static  intSSH_FILEXFER_ATTR_FLAGS_HIDDEN
     File SHOULD NOT be shown to user unless specifically requested. For example, most UNIX systems SHOULD set this bit if the filename begins with a 'period'.
final public static  intSSH_FILEXFER_ATTR_FLAGS_IMMUTABLE
     The file cannot be deleted or renamed, no hard link can be created to this file, and no data can be written to the file.
final public static  intSSH_FILEXFER_ATTR_FLAGS_READONLY
     Advisory, read-only bit.
final public static  intSSH_FILEXFER_ATTR_FLAGS_SPARSE
     The file is a sparse file; this means that file blocks that have not been explicitly written are not stored on disk.
final public static  intSSH_FILEXFER_ATTR_FLAGS_SYNC
     When the file is modified, the changes are written synchronously to the disk.
final public static  intSSH_FILEXFER_ATTR_FLAGS_SYSTEM
     The file is part of the operating system.
final public static  intSSH_FILEXFER_ATTR_FLAGS_TRANSLATION_ERR
     The server MAY include this bit in a directory listing or realpath response.



Field Detail
SSH_FILEXFER_ATTR_FLAGS_APPEND_ONLY
final public static int SSH_FILEXFER_ATTR_FLAGS_APPEND_ONLY(Code)
Opening the file without either the SSH_FXF_ACCESS_APPEND_DATA or the SSH_FXF_ACCESS_APPEND_DATA_ATOMIC flag (see section 8.1.1.3 of the SFTP standard draft) MUST result in an SSH_FX_INVALID_PARAMETER error.



SSH_FILEXFER_ATTR_FLAGS_ARCHIVE
final public static int SSH_FILEXFER_ATTR_FLAGS_ARCHIVE(Code)
The file should be included in backup / archive operations.



SSH_FILEXFER_ATTR_FLAGS_CASE_INSENSITIVE
final public static int SSH_FILEXFER_ATTR_FLAGS_CASE_INSENSITIVE(Code)
This attribute applies only to directories. This attribute is always read-only, and cannot be modified. This attribute means that files and directory names in this directory should be compared without regard to case.

It is recommended that where possible, the server's filesystem be allowed to do comparisons. For example, if a client wished to prompt a user before overwriting a file, it should not compare the new name with the previously retrieved list of names in the directory. Rather, it should first try to create the new file by specifying SSH_FXF_CREATE_NEW flag. Then, if this fails and returns SSH_FX_FILE_ALREADY_EXISTS, it should prompt the user and then retry the create specifying SSH_FXF_CREATE_TRUNCATE.

Unless otherwise specified, filenames are assumed to be case sensitive.




SSH_FILEXFER_ATTR_FLAGS_COMPRESSED
final public static int SSH_FILEXFER_ATTR_FLAGS_COMPRESSED(Code)
The file is stored on disk using file-system level transparent compression. This flag does not affect the file data on the wire.



SSH_FILEXFER_ATTR_FLAGS_ENCRYPTED
final public static int SSH_FILEXFER_ATTR_FLAGS_ENCRYPTED(Code)
The file is stored on disk using file-system level transparent encryption. This flag does not affect the file data on the wire (for either READ or WRITE requests.)



SSH_FILEXFER_ATTR_FLAGS_HIDDEN
final public static int SSH_FILEXFER_ATTR_FLAGS_HIDDEN(Code)
File SHOULD NOT be shown to user unless specifically requested. For example, most UNIX systems SHOULD set this bit if the filename begins with a 'period'. This bit may be read-only (see section 5.4 of the SFTP standard draft). Most UNIX systems will not allow this to be changed.



SSH_FILEXFER_ATTR_FLAGS_IMMUTABLE
final public static int SSH_FILEXFER_ATTR_FLAGS_IMMUTABLE(Code)
The file cannot be deleted or renamed, no hard link can be created to this file, and no data can be written to the file.

This bit implies a stronger level of protection than SSH_FILEXFER_ATTR_FLAGS_READONLY, the file permission mask or ACLs. Typically even the superuser cannot write to immutable files, and only the superuser can set or remove the bit.




SSH_FILEXFER_ATTR_FLAGS_READONLY
final public static int SSH_FILEXFER_ATTR_FLAGS_READONLY(Code)
Advisory, read-only bit. This bit is not part of the access control information on the file, but is rather an advisory field indicating that the file should not be written.



SSH_FILEXFER_ATTR_FLAGS_SPARSE
final public static int SSH_FILEXFER_ATTR_FLAGS_SPARSE(Code)
The file is a sparse file; this means that file blocks that have not been explicitly written are not stored on disk. For example, if a client writes a buffer at 10 M from the beginning of the file, the blocks between the previous EOF marker and the 10 M offset would not consume physical disk space.

Some servers may store all files as sparse files, in which case this bit will be unconditionally set. Other servers may not have a mechanism for determining if the file is sparse, and so the file MAY be stored sparse even if this flag is not set.




SSH_FILEXFER_ATTR_FLAGS_SYNC
final public static int SSH_FILEXFER_ATTR_FLAGS_SYNC(Code)
When the file is modified, the changes are written synchronously to the disk.



SSH_FILEXFER_ATTR_FLAGS_SYSTEM
final public static int SSH_FILEXFER_ATTR_FLAGS_SYSTEM(Code)
The file is part of the operating system.



SSH_FILEXFER_ATTR_FLAGS_TRANSLATION_ERR
final public static int SSH_FILEXFER_ATTR_FLAGS_TRANSLATION_ERR(Code)
The server MAY include this bit in a directory listing or realpath response. It indicates there was a failure in the translation to UTF-8. If this flag is included, the server SHOULD also include the UNTRANSLATED_NAME attribute.





Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.