类java.awt.color.ProfileDataException源码实例Demo

下面列出了怎么用java.awt.color.ProfileDataException的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: dragonwell8_jdk   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码2 项目: TencentKona-8   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码3 项目: jdk8u60   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码4 项目: openjdk-jdk8u   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码5 项目: openjdk-jdk8u-backup   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码6 项目: Bytecoder   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码7 项目: openjdk-jdk9   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码8 项目: jdk8u-jdk   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码9 项目: hottub   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码10 项目: openjdk-8-source   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码11 项目: openjdk-8   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码12 项目: jdk8u_jdk   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码13 项目: jdk8u-jdk   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码14 项目: jdk8u-dev-jdk   文件: ProfileDeferralMgr.java
/**
 * 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;
}
 
源代码15 项目: coming   文件: NPEfix16_sixteen_s.java
/**
 * 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;
}
 
源代码16 项目: coming   文件: NPEfix16_sixteen_t.java
/**
 * 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;
}
 
源代码17 项目: dragonwell8_jdk   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码18 项目: TencentKona-8   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码19 项目: jdk8u60   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码20 项目: openjdk-jdk8u   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码21 项目: openjdk-jdk8u-backup   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码22 项目: Bytecoder   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码23 项目: openjdk-jdk9   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码24 项目: jdk8u-jdk   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码25 项目: hottub   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码26 项目: openjdk-8-source   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码27 项目: openjdk-8   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码28 项目: jdk8u_jdk   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码29 项目: jdk8u-jdk   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
源代码30 项目: jdk8u-dev-jdk   文件: ProfileActivator.java
/**
 * Activate a previously deferred ICC_Profile object.
 */
public void activate() throws ProfileDataException;
 
 类所在包
 类方法
 同包方法