Secure iNet Factory

com.jscape.inet.file
Class JFilePermissions.Permission

java.lang.Object
  extended by com.jscape.inet.file.JFilePermissions.Permission
Enclosing class:
JFilePermissions

public static final class JFilePermissions.Permission
extends java.lang.Object

Represents Unix object permission.

Version:
1.0
Author:
Alex

Constructor Summary
JFilePermissions.Permission(boolean readAllowed, boolean writeAllowed, boolean executeAllowed)
           
JFilePermissions.Permission(int value)
          Creates a new permission object for the specified integer value.
JFilePermissions.Permission(java.lang.String value)
          Creates a new permission object for the specified string representation as for example "rwx".
 
Method Summary
 boolean executeAllowed()
          Checks if executing is allowed.
 int intValue()
          Obtains integer representation of the current permission.
 boolean readAllowed()
          Checks if reading is allowed.
 java.lang.String toString()
          Obtains string representation of the current permission as for example "rwx".
 boolean writeAllowed()
          Checks if writing is allowed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JFilePermissions.Permission

public JFilePermissions.Permission(boolean readAllowed,
                                   boolean writeAllowed,
                                   boolean executeAllowed)
Parameters:
readAllowed -
writeAllowed -
executeAllowed -

JFilePermissions.Permission

public JFilePermissions.Permission(int value)
Creates a new permission object for the specified integer value.

Parameters:
value - permission integer representation

JFilePermissions.Permission

public JFilePermissions.Permission(java.lang.String value)
Creates a new permission object for the specified string representation as for example "rwx".

Parameters:
value - permission string representation
Method Detail

readAllowed

public boolean readAllowed()
Checks if reading is allowed.

Returns:
true if reading is allowed; false otherwise

writeAllowed

public boolean writeAllowed()
Checks if writing is allowed.

Returns:
true if writing is allowed; false otherwise

executeAllowed

public boolean executeAllowed()
Checks if executing is allowed.

Returns:
true if executing is allowed; false otherwise

intValue

public int intValue()
Obtains integer representation of the current permission.

Returns:
integer representation of the current permission

toString

public java.lang.String toString()
Obtains string representation of the current permission as for example "rwx".

Overrides:
toString in class java.lang.Object
Returns:
string representation of the current permission

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2014. All Rights Reserved