jdk/src/share/classes/java/awt/color/ICC_Profile.java
changeset 3958 b8acd5ee4f4f
parent 3288 db82a42da273
child 4209 e2e5a973b879
equal deleted inserted replaced
3957:c8fdb8fad795 3958:b8acd5ee4f4f
    55 
    55 
    56 import java.util.StringTokenizer;
    56 import java.util.StringTokenizer;
    57 
    57 
    58 import java.security.AccessController;
    58 import java.security.AccessController;
    59 import java.security.PrivilegedAction;
    59 import java.security.PrivilegedAction;
       
    60 
       
    61 import sun.misc.BootClassLoaderHook;
    60 
    62 
    61 /**
    63 /**
    62  * A representation of color profile data for device independent and
    64  * A representation of color profile data for device independent and
    63  * device dependent color spaces based on the International Color
    65  * device dependent color spaces based on the International Color
    64  * Consortium Specification ICC.1:2001-12, File Format for Color Profiles,
    66  * Consortium Specification ICC.1:2001-12, File Format for Color Profiles,
  1848                 File.separatorChar + "lib" + File.separatorChar + "cmm";
  1850                 File.separatorChar + "lib" + File.separatorChar + "cmm";
  1849             fullPath = dir + File.separatorChar + fileName;
  1851             fullPath = dir + File.separatorChar + fileName;
  1850                 f = new File(fullPath);
  1852                 f = new File(fullPath);
  1851                 if (!f.isFile()) {
  1853                 if (!f.isFile()) {
  1852                     //make sure file was installed in the kernel mode
  1854                     //make sure file was installed in the kernel mode
  1853                     try {
  1855                     BootClassLoaderHook hook = BootClassLoaderHook.getHook();
  1854                         //kernel uses platform independent paths =>
  1856                     if (hook.getHook() != null) {
  1855                         //   should not use platform separator char
  1857                         hook.prefetchFile("lib/cmm/"+fileName);
  1856                         sun.jkernel.DownloadManager.downloadFile("lib/cmm/"+fileName);
  1858                     }
  1857                     } catch (IOException ioe) {}
       
  1858                 }
  1859                 }
  1859             }
  1860             }
  1860 
  1861 
  1861         if (f.isFile()) {
  1862         if (f.isFile()) {
  1862             return f;
  1863             return f;