|
xmlgraphics-commons 1.5 | |||||||||
| 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 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 ICC_Profile |
getICC_Profile(InputStream in)
Proxy method for ICC_Profile.getInstance(java.io.InputStream)
that properly synchronizes the call to avoid a potential race condition. |
static 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 ICC_Profile |
getICC_Profile(String fileName)
Proxy method for ICC_Profile.getInstance(java.lang.String)
that properly synchronizes the call to avoid a potential race condition. |
static String |
getICCProfileDescription(ICC_Profile profile)
Returns the profile description of an ICC profile |
static boolean |
isDefaultsRGB(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 String getICCProfileDescription(ICC_Profile profile)
profile - the profile
public static boolean isDefaultsRGB(ICC_Profile profile)
profile - the color profile to check
public static 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 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
IllegalArgumentException - if colorSpace is not one of the predefined types
public static ICC_Profile getICC_Profile(InputStream in)
throws 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
IOException - if an I/O error occurs while reading the stream
IllegalArgumentException - if the stream does not contain valid ICC Profile data
public static ICC_Profile getICC_Profile(String fileName)
throws 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
IOException - if the file cannot be opened, or an I/O error occurs while reading
the stream
IllegalArgumentException - if the stream does not contain valid ICC Profile data
SecurityException - if a security manager is installed and it does not permit read
access to the given file.
|
xmlgraphics-commons 1.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||