Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package javax.xml.parsers;
  
  import java.io.File;
 
 final class SecuritySupport
 {
   {
     return (ClassLoader)AccessController.doPrivileged(new PrivilegedAction()
     {
       public Object run()
       {
         ClassLoader localClassLoader = null;
         try
         {
           localClassLoader = Thread.currentThread().getContextClassLoader();
         }
         catch (SecurityException localSecurityException)
         {
         }
         return localClassLoader;
       }
     });
   }
 
   static String getSystemProperty(String paramString)
   {
     return (String)AccessController.doPrivileged(new PrivilegedAction(paramString)
     {
       private final String val$propName;
 
       public Object run()
       {
         return System.getProperty(this.val$propName);
       }
     });
   }
 
   static FileInputStream getFileInputStream(File paramFile)
     throws FileNotFoundException
   {
     try
     {
       return (FileInputStream)AccessController.doPrivileged(new PrivilegedExceptionAction(paramFile)
       {
         private final File val$file;
 
         public Object run()
           throws FileNotFoundException
         {
           return new FileInputStream(this.val$file);
         }
       });
     }
     catch (PrivilegedActionException localPrivilegedActionException)
     {
     }
     throw ((FileNotFoundException)localPrivilegedActionException.getException());
   }
 
   static InputStream getResourceAsStream(ClassLoader paramClassLoaderString paramString)
   {
     return (InputStream)AccessController.doPrivileged(new PrivilegedAction(paramClassLoader, paramString)
     {
       private final ClassLoader val$cl;
       private final String val$name;
 
       public Object run()
       {
         InputStream localInputStream;
         if (this.val$cl == null)
           localInputStream = ClassLoader.getSystemResourceAsStream(this.val$name);
         else
           localInputStream = this.val$cl.getResourceAsStream(this.val$name);
         return localInputStream;
       }
     });
   }
 
   static boolean doesFileExist(File paramFile)
   {
     return ((Boolean)AccessController.doPrivileged(new PrivilegedAction(paramFile)
     {
       private final File val$f;
 
       public Object run()
       {
         return this.val$f.exists() ? Boolean.TRUE : Boolean.FALSE;
       }
     })).booleanValue();
   }
 }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     javax.xml.parsers.SecuritySupport
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X