java.awt.color.ProfileDataException Java Examples
The following examples show how to use
java.awt.color.ProfileDataException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProfileDeferralMgr.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #2
Source File: ProfileDeferralMgr.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #3
Source File: ProfileDeferralMgr.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #4
Source File: ProfileDeferralMgr.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #5
Source File: ProfileDeferralMgr.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #6
Source File: ProfileDeferralMgr.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #7
Source File: ProfileDeferralMgr.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #8
Source File: ProfileDeferralMgr.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #9
Source File: ProfileDeferralMgr.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #10
Source File: ProfileDeferralMgr.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #11
Source File: ProfileDeferralMgr.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #12
Source File: ProfileDeferralMgr.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #13
Source File: ProfileDeferralMgr.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #14
Source File: ProfileDeferralMgr.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Removes a ProfileActivator object from the vector of ProfileActivator * objects whose activate method will be called if the CMM needs to be * activated. */ public static void activateProfiles() { int i, n; deferring = false; if (aVector == null) { return; } n = aVector.size(); for (ProfileActivator pa : aVector) { try { pa.activate(); } catch (ProfileDataException e) { /* * Ignore profile activation error for now: * such exception is pssible due to absence * or corruption of standard color profile. * As for now we expect all profiles should * be shiped with jre and presence of this * exception is indication of some configuration * problem in jre installation. * * NB: we still are greedy loading deferred profiles * and load them all if any of them is needed. * Therefore broken profile (if any) might be never used. * If there will be attempt to use broken profile then * it will result in CMMException. */ } } aVector.removeAllElements(); aVector = null; return; }
Example #15
Source File: NPEfix16_sixteen_t.java From coming with MIT License | 4 votes |
/** * Create a Java colorspace for this colorspace. * * @return A color space that can be used for Java AWT operations. * * @throws IOException If there is an error creating the color space. */ protected ColorSpace createColorSpace() throws IOException { InputStream profile = null; ColorSpace cSpace = null; try { profile = stream.createInputStream(); ICC_Profile iccProfile = ICC_Profile.getInstance( profile ); cSpace = new ICC_ColorSpace( iccProfile ); // there maybe a ProfileDataException or a CMMException as there // are some issues when loading ICC_Profiles, see PDFBOX-1295 // Try to create a color as test ... new Color(cSpace,new float[getNumberOfComponents()],1f); } catch (RuntimeException e) { if (e instanceof ProfileDataException || e instanceof CMMException || e instanceof IllegalArgumentException) { // we are using an alternate colorspace as fallback List alternateCSList = getAlternateColorSpaces(); PDColorSpace alternate = (PDColorSpace) alternateCSList.get(0); LOG.error("Can't read ICC-profile, using alternate colorspace instead: " + alternate); cSpace = alternate.getJavaColorSpace(); } else { throw e; } } finally { if( profile != null ) { profile.close(); } } return cSpace; }
Example #16
Source File: NPEfix16_sixteen_s.java From coming with MIT License | 4 votes |
/** * Create a Java colorspace for this colorspace. * * @return A color space that can be used for Java AWT operations. * * @throws IOException If there is an error creating the color space. */ protected ColorSpace createColorSpace() throws IOException { InputStream profile = null; ColorSpace cSpace = null; try { profile = stream.createInputStream(); ICC_Profile iccProfile = ICC_Profile.getInstance( profile ); cSpace = new ICC_ColorSpace( iccProfile ); // there maybe a ProfileDataException or a CMMException as there // are some issues when loading ICC_Profiles, see PDFBOX-1295 // Try to create a color as test ... new Color(cSpace,new float[getNumberOfComponents()],1f); } catch (RuntimeException e) { if (e instanceof ProfileDataException || e instanceof CMMException || e instanceof IllegalArgumentException) { // we are using an alternate colorspace as fallback List alternateCSList = getAlternateColorSpaces(); PDColorSpace alternate = (PDColorSpace) alternateCSList.get(0); LOG.error("Can't read ICC-profile, using alternate colorspace instead: " + alternate); cSpace = alternate.getJavaColorSpace(); } else { throw e; } } finally { if( profile != null ) { profile.close(); } } return cSpace; }
Example #17
Source File: ProfileActivator.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #18
Source File: ProfileActivator.java From Bytecoder with Apache License 2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #19
Source File: ProfileActivator.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #20
Source File: ProfileActivator.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #21
Source File: ProfileActivator.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #22
Source File: ProfileActivator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #23
Source File: ProfileActivator.java From jdk8u_jdk with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #24
Source File: ProfileActivator.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #25
Source File: ProfileActivator.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #26
Source File: ProfileActivator.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #27
Source File: ProfileActivator.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #28
Source File: ProfileActivator.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #29
Source File: ProfileActivator.java From dragonwell8_jdk with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;
Example #30
Source File: ProfileActivator.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * Activate a previously deferred ICC_Profile object. */ public void activate() throws ProfileDataException;