code: public FileInputStream getFileInputStream(final File file) throws FileNotFoundException {
          if (System.getSecurityManager() == null)
              return new FileInputStream(file);
          try {
              return AccessController.doPrivileged(new PrivilegedExceptionAction<FileInputStream>() {
                  @Override
                  public FileInputStream run() throws FileNotFoundException {
                      return new FileInputStream(file);
                  }
              }, controlContext);
          } catch (PrivilegedActionException e) {
              if (e.getException() instanceof FileNotFoundException)
                  throw (FileNotFoundException) e.getException();
              throw (RuntimeException) e.getException();
          }
      }
docs: Creates a FileInputStream from a File. Same as calling
  new FileInputStream(File).
  
  @param file the File to craete a FileInputStream from.
  @return The FileInputStream.
  @throws FileNotFoundException if the File does not exist.