/**
* 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;
}
项目: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;
}
项目:openjdk-jdk10
文件: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;
}
项目:openjdk9
文件: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;
}
项目: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;
}
项目:lookaside_java-1.8.0-openjdk
文件: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;
}
项目:infobip-open-jdk-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;
}
项目: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;
}
项目:jdk7-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;
}
项目:openjdk-source-code-learn
文件: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;
}
项目:OLD-OpenJDK8
文件: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;
}
项目:openjdk-jdk7u-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;
}
项目:openjdk-icedtea7
文件: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;
}
/**
* Load the ICC profile,or init alternateColorSpace color space.
*/
private void loadICCProfile() throws IOException
{
InputStream input = null;
try
{
input = this.stream.createInputStream();
// if the embedded profile is sRGB then we can use Java's built-in profile,which
// results in a large performance gain as it's our native color space,see PDFBox-2587
ICC_Profile profile;
synchronized (LOG)
{
profile = ICC_Profile.getInstance(input);
if (is_sRGB(profile))
{
isRGB = true;
awtColorSpace = (ICC_ColorSpace) ColorSpace.getInstance(ColorSpace.CS_sRGB);
iccProfile = awtColorSpace.getProfile();
}
else
{
awtColorSpace = new ICC_ColorSpace(profile);
iccProfile = profile;
}
// set initial colour
float[] initial = new float[getNumberOfComponents()];
for (int c = 0; c < getNumberOfComponents(); c++)
{
initial[c] = Math.max(0,getRangeForComponent(c).getMin());
}
initialColor = new PDColor(initial,this);
// do things that trigger a ProfileDataException
// or CMMException due to invalid profiles,see PDFBox-1295 and PDFBox-1740
// or Arrayindexoutofboundsexception,see PDFBox-3610
awtColorSpace.toRGB(new float[awtColorSpace.getNumComponents()]);
// this one triggers an exception for PDFBox-3549 with KCMS
new Color(awtColorSpace,new float[getNumberOfComponents()],1f);
}
}
catch (RuntimeException e)
{
if (e instanceof ProfileDataException || e instanceof CMMException
|| e instanceof IllegalArgumentException
|| e instanceof Arrayindexoutofboundsexception)
{
// fall back to alternateColorSpace color space
awtColorSpace = null;
alternateColorSpace = getAlternateColorSpace();
if (alternateColorSpace.equals(PDDeviceRGB.INSTANCE))
{
isRGB = true;
}
LOG.warn("Can't read embedded ICC profile (" + e.getLocalizedMessage()
+ "),using alternate color space: " + alternateColorSpace.getName());
initialColor = alternateColorSpace.getinitialColor();
}
else
{
throw e;
}
}
finally
{
IoUtils.closeQuietly(input);
}
}
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:jdk8u-jdk
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:openjdk-jdk10
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:openjdk9
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:jdk8u_jdk
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:lookaside_java-1.8.0-openjdk
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:infobip-open-jdk-8
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:jdk8u-dev-jdk
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:jdk7-jdk
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:openjdk-source-code-learn
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:OLD-OpenJDK8
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:openjdk-jdk7u-jdk
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
项目:openjdk-icedtea7
文件:ProfileActivator.java
/**
* Activate a prevIoUsly deferred ICC_Profile object.
*/
public void activate() throws ProfileDataException;
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。