public class

OpenFileInputStreamAction

extends Object
implements PrivilegedExceptionAction<T>
java.lang.Object
   ↳ sun.security.action.OpenFileInputStreamAction

Class Overview

A convenience class for opening a FileInputStream as a privileged action.

Summary

Public Constructors
OpenFileInputStreamAction(File file)
OpenFileInputStreamAction(String filename)
Public Methods
FileInputStream run()
Performs the computation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.PrivilegedExceptionAction

Public Constructors

public OpenFileInputStreamAction (File file)

public OpenFileInputStreamAction (String filename)

Public Methods

public FileInputStream run ()

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns
  • a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedExceptionAction should document what (if anything) this value represents.
Throws
Exception