public class NamedColorProfileParser
extends java.lang.Object
ICC_Profile class
for parsing the basic structure but adds functionality to parse certain profile tags.| Modifier and Type | Field and Description |
|---|---|
private static int |
MLUC |
private static int |
NCL2 |
| Constructor and Description |
|---|
NamedColorProfileParser() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
getCopyright(java.awt.color.ICC_Profile profile) |
private java.lang.String |
getProfileDescription(java.awt.color.ICC_Profile profile) |
private RenderingIntent |
getRenderingIntent(java.awt.color.ICC_Profile profile) |
static boolean |
isNamedColorProfile(java.awt.color.ICC_Profile profile)
Indicates whether the profile is a named color profile.
|
NamedColorProfile |
parseProfile(java.awt.color.ICC_Profile profile)
Parses a named color profile (NCP).
|
NamedColorProfile |
parseProfile(java.awt.color.ICC_Profile profile,
java.lang.String profileName,
java.lang.String profileURI)
Parses a named color profile (NCP).
|
private java.lang.String |
readAscii(java.io.DataInput in,
int maxLength) |
private java.lang.String |
readMLUC(java.io.DataInput din) |
private NamedColorSpace[] |
readNamedColors(java.awt.color.ICC_Profile profile,
java.lang.String profileName,
java.lang.String profileURI) |
private java.lang.String |
readSimpleString(byte[] tag) |
private int[] |
readUInt16Array(java.io.DataInput din,
int count) |
private java.lang.String |
toSignatureString(int sig) |
private static final int MLUC
private static final int NCL2
public static boolean isNamedColorProfile(java.awt.color.ICC_Profile profile)
profile - the color profilepublic NamedColorProfile parseProfile(java.awt.color.ICC_Profile profile, java.lang.String profileName, java.lang.String profileURI) throws java.io.IOException
profile - the profile to analyzeprofileName - Optional profile name associated with this color profileprofileURI - Optional profile URI associated with this color profilejava.io.IOException - if an I/O error occurspublic NamedColorProfile parseProfile(java.awt.color.ICC_Profile profile) throws java.io.IOException
profile - the profile to analyzejava.io.IOException - if an I/O error occursprivate java.lang.String getProfileDescription(java.awt.color.ICC_Profile profile)
throws java.io.IOException
java.io.IOExceptionprivate java.lang.String getCopyright(java.awt.color.ICC_Profile profile)
throws java.io.IOException
java.io.IOExceptionprivate RenderingIntent getRenderingIntent(java.awt.color.ICC_Profile profile) throws java.io.IOException
java.io.IOExceptionprivate NamedColorSpace[] readNamedColors(java.awt.color.ICC_Profile profile, java.lang.String profileName, java.lang.String profileURI) throws java.io.IOException
java.io.IOExceptionprivate int[] readUInt16Array(java.io.DataInput din,
int count)
throws java.io.IOException
java.io.IOExceptionprivate java.lang.String readAscii(java.io.DataInput in,
int maxLength)
throws java.io.IOException
java.io.IOExceptionprivate java.lang.String readSimpleString(byte[] tag)
throws java.io.IOException
java.io.IOExceptionprivate java.lang.String readMLUC(java.io.DataInput din)
throws java.io.IOException
java.io.IOExceptionprivate java.lang.String toSignatureString(int sig)