|
xmlgraphics-commons 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.java2d.color.profile.ColorProfileUtil
public final class ColorProfileUtil
Helper methods for handling color profiles.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getICCProfileDescription(java.awt.color.ICC_Profile profile)
profile
- the profile
public static boolean isDefaultsRGB(java.awt.color.ICC_Profile profile)
profile
- the color profile to check
public 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 data
ICC_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 ColorSpace
java.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 data
ICC_Profile
instance corresponding to the data in the
specified InputStream
java.io.IOException
- if an I/O error occurs while reading the stream
java.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 data
ICC_Profile
instance corresponding to the data in the specified file
java.io.IOException
- if the file cannot be opened, or an I/O error occurs while reading
the stream
java.lang.IllegalArgumentException
- if the stream does not contain valid ICC Profile data
java.lang.SecurityException
- if a security manager is installed and it does not permit read
access to the given file.
|
xmlgraphics-commons 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |