    All Packages    This Package    Previous    Next

# Class java.io.AccessErrorHandler

    java.lang.Object
       |
       +----java.io.AccessErrorHandler

public class AccessErrorHandler
extends Object

This class is used by the File access-control mechanism. If an access control exception occurs and an error handler was installed using the File.setAccessErrorHandler method, then the handler will get invoked to determine what course of action to take.

See Also:
  setAccessErrorHandler, File
Version:
  1.4 31 Jan 1995
Author:
  Sami Shaio

##

ALLOW_ACCESS
  Allow the current access and all subsequent ones.
ALLOW_THIS_ACCESS
  Allow the current access only.
DENY_ACCESS
  Deny the current access.

##

AccessErrorHandler()

##

readException(String)
  This method is invoked if a read operation was attempted on the given file and the acl check failed.
writeException(String)
  This method is invoked if a write operation was attempted on the given file and the acl check failed.

##

ALLOW_ACCESS

      public final static int ALLOW_ACCESS

  Allow the current access and all subsequent ones.

ALLOW_THIS_ACCESS

      public final static int ALLOW_THIS_ACCESS

  Allow the current access only.

DENY_ACCESS

      public final static int DENY_ACCESS

  Deny the current access.

##

AccessErrorHandler

      public AccessErrorHandler()

##

readException

      public int readException(String f)

  This method is invoked if a read operation was attempted on the given file and the acl check failed.
  Parameters:
    f - the File to be accessed.
  Returns:
    one of ALLOW_ACCESS, ALLOW_THIS_ACCESS, or DENY_ACCESS

writeException

      public int writeException(String f)

  This method is invoked if a write operation was attempted on the given file and the acl check failed.
  Parameters:
    f - the File to be accessed.
  Returns:
    one of ALLOW_ACCESS, ALLOW_THIS_ACCESS, or DENY_ACCESS

    All Packages    This Package    Previous    Next