public final class ColorProfileUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.awt.color.ICC_Profile |
getICC_Profile(byte[] data)
Proxy method for
ICC_Profile.getInstance(byte[])
that properly synchronizes the call to avoid a potential race condition. |
static java.awt.color.ICC_Profile |
getICC_Profile(java.io.InputStream in)
Proxy method for
ICC_Profile.getInstance(java.io.InputStream)
that properly synchronizes the call to avoid a potential race condition. |
static java.awt.color.ICC_Profile |
getICC_Profile(int colorSpace)
Proxy method for
ICC_Profile.getInstance(int)
that properly synchronizes the call to avoid a potential race condition. |
static java.awt.color.ICC_Profile |
getICC_Profile(java.lang.String fileName)
Proxy method for
ICC_Profile.getInstance(java.lang.String)
that properly synchronizes the call to avoid a potential race condition. |
static java.lang.String |
getICCProfileDescription(java.awt.color.ICC_Profile profile)
Returns the profile description of an ICC profile
|
static boolean |
isDefaultsRGB(java.awt.color.ICC_Profile profile)
Indicates whether a given color profile is identical to the default sRGB profile
provided by the Java class library.
|
public static java.lang.String getICCProfileDescription(java.awt.color.ICC_Profile profile)
profile - the profilepublic static boolean isDefaultsRGB(java.awt.color.ICC_Profile profile)
profile - the color profile to checkpublic static java.awt.color.ICC_Profile getICC_Profile(byte[] data)
ICC_Profile.getInstance(byte[])
that properly synchronizes the call to avoid a potential race condition.data - the specified ICC Profile dataICC_Profile instance corresponding to the data in the
specified byte arraypublic static java.awt.color.ICC_Profile getICC_Profile(int colorSpace)
ICC_Profile.getInstance(int)
that properly synchronizes the call to avoid a potential race condition.colorSpace - the type of color space to create a profile for. The specified type is
one of the color space constants defined in the ColorSpace
class.ICC_Profile instance corresponding to the specified ColorSpacejava.lang.IllegalArgumentException - if colorSpace is not one of the predefined typespublic static java.awt.color.ICC_Profile getICC_Profile(java.io.InputStream in)
throws java.io.IOException
ICC_Profile.getInstance(java.io.InputStream)
that properly synchronizes the call to avoid a potential race condition.in - the input stream from which to read the profile dataICC_Profile instance corresponding to the data in the
specified InputStreamjava.io.IOException - if an I/O error occurs while reading the streamjava.lang.IllegalArgumentException - if the stream does not contain valid ICC Profile datapublic static java.awt.color.ICC_Profile getICC_Profile(java.lang.String fileName)
throws java.io.IOException
ICC_Profile.getInstance(java.lang.String)
that properly synchronizes the call to avoid a potential race condition.fileName - the name of the file that contains the profile dataICC_Profile instance corresponding to the data in the specified filejava.io.IOException - if the file cannot be opened, or an I/O error occurs while reading
the streamjava.lang.IllegalArgumentException - if the stream does not contain valid ICC Profile datajava.lang.SecurityException - if a security manager is installed and it does not permit read
access to the given file.Copyright 1999-2025 The Apache Software Foundation. All Rights Reserved.