Java Doc for GruntspudFileMode.java in  » Source-Control » gruntspud » gruntspud » file » 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 » Source Control » gruntspud » gruntspud.file 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gruntspud.file.GruntspudFileMode

All known Subclasses:   org.netbeans.lib.cvsclient.file.FileMode,
GruntspudFileMode
public class GruntspudFileMode (Code)

Inner Class :static class FileModeType
Inner Class :static class FileModePermission

Field Summary
public static  FileModePermissionEXECUTE_PERMISSION
    
public static  FileModeTypeGROUP_FILE_MODE_TYPE
    
public static  FileModeTypeOTHER_FILE_MODE_TYPE
    
public static  FileModePermissionREAD_PERMISSION
    
public static  FileModeTypeUSER_FILE_MODE_TYPE
    
public static  FileModePermissionWRITE_PERMISSION
    

Constructor Summary
public  GruntspudFileMode()
    
public  GruntspudFileMode(File file)
    

Method Summary
public  Objectclone()
    
public static  GruntspudFileModegetDefaultFileMode()
     Get the default file mode.
public static  GruntspudFileModegetFileModeForFile(File file)
     Utility to create a FileMode object given a File. For this to be effective, a FileModeHandler must have been registered using FileUtil.setFileModeHandler.
public static  GruntspudFileModegetFileModeForString(String fileModeString)
    
public static  FileModeTypegetFileModeTypeForMnemonic(char mnemonic)
    
public  FileModePermission[]getPermission(FileModeType type)
    
public static  FileModePermission[]getPermissionsForString(String s)
     Return an array of FileModePermission's given a string.
public  booleanhasPermission(FileModeType fileModeType, FileModePermission fileModePermission)
    
public static  StringpermissionsToString(FileModePermission[] permissions)
    
public  voidremovePermission(FileModeType fileModeType, FileModePermission fileModePermission)
     Remove a permission.
public static  voidsetDefaultFileMode(GruntspudFileMode fileMode)
     Set the default file mode.
public static  voidsetFileModeForFile(GruntspudFileMode fileMode, File file)
    
public  voidsetPermission(FileModeType fileModeType, FileModePermission[] fileModePermission)
     Set the permissions for a given FileModeType.
public  StringtoString()
    

Field Detail
EXECUTE_PERMISSION
public static FileModePermission EXECUTE_PERMISSION(Code)



GROUP_FILE_MODE_TYPE
public static FileModeType GROUP_FILE_MODE_TYPE(Code)



OTHER_FILE_MODE_TYPE
public static FileModeType OTHER_FILE_MODE_TYPE(Code)



READ_PERMISSION
public static FileModePermission READ_PERMISSION(Code)



USER_FILE_MODE_TYPE
public static FileModeType USER_FILE_MODE_TYPE(Code)



WRITE_PERMISSION
public static FileModePermission WRITE_PERMISSION(Code)




Constructor Detail
GruntspudFileMode
public GruntspudFileMode()(Code)
Construct a new file mode with the default permissions (u=rw,g=r,o=r)



GruntspudFileMode
public GruntspudFileMode(File file)(Code)
Construct a new file mode
Parameters:
  file - file




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)



getDefaultFileMode
public static GruntspudFileMode getDefaultFileMode()(Code)
Get the default file mode. the default file mode



getFileModeForFile
public static GruntspudFileMode getFileModeForFile(File file)(Code)
Utility to create a FileMode object given a File. For this to be effective, a FileModeHandler must have been registered using FileUtil.setFileModeHandler. If no FileModeHandler is registered, or the registered one throws an excepion then the FileMode is obtained using the native File.canRead and File.canWrite methods. This will NOT take into account 'group' and 'other' file mode types and 'execute' permission. *
Parameters:
  file - file to based FileMode on FileMode object



getFileModeForString
public static GruntspudFileMode getFileModeForString(String fileModeString)(Code)
Return a file mode object given a string
Parameters:
  string - string representation of the file mode file mode



getFileModeTypeForMnemonic
public static FileModeType getFileModeTypeForMnemonic(char mnemonic)(Code)
Return a file mode type given its mnemonic
Parameters:
  fileModeType -
Parameters:
  fileModePermission -



getPermission
public FileModePermission[] getPermission(FileModeType type)(Code)
Get the permissions for a given file mode type
Parameters:
  fileModeType - file mode type permissions



getPermissionsForString
public static FileModePermission[] getPermissionsForString(String s)(Code)
Return an array of FileModePermission's given a string. Each character in the string will be examined for the mnemonic of the three know permission read,write and execute
Parameters:
  string - representation of the permission array of permission object



hasPermission
public boolean hasPermission(FileModeType fileModeType, FileModePermission fileModePermission)(Code)
Determine if a FileMode has a particular permission set
Parameters:
  fileModeType -
Parameters:
  fileModePermission - true if file has permission



permissionsToString
public static String permissionsToString(FileModePermission[] permissions)(Code)
Return how an array of permissions would be represented as a string
Parameters:
  fileModePermission - array of permissions as a string



removePermission
public void removePermission(FileModeType fileModeType, FileModePermission fileModePermission)(Code)
Remove a permission.
Parameters:
  fileModeType -
Parameters:
  fileModePermission -



setDefaultFileMode
public static void setDefaultFileMode(GruntspudFileMode fileMode)(Code)
Set the default file mode.
Parameters:
  fileMode - default file mode



setFileModeForFile
public static void setFileModeForFile(GruntspudFileMode fileMode, File file)(Code)
Utility to set a file given a FileMode specify what permissions should be set
Parameters:
  fileMode - file mode object
Parameters:
  file - file to set mode on
throws:
  IOException -



setPermission
public void setPermission(FileModeType fileModeType, FileModePermission[] fileModePermission)(Code)
Set the permissions for a given FileModeType.
Parameters:
  fileModeType - file mode type
Parameters:
  fileModePermission - file mode permission



toString
public String toString()(Code)
Returns a CVS-compatible file mode string



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.