}
private NamedColorSpace[] readNamedColors(ICC_Profile profile,
String profileName, String profileURI) throws IOException {
byte[] tag = profile.getData(ICC_Profile.icSigNamedColor2Tag);
DataInput din = new DataInputStream(new ByteArrayInputStream(tag));
int sig = din.readInt();
if (sig != NCL2) {
throw new UnsupportedOperationException("Unsupported structure type: "
+ toSignatureString(sig) + ". Expected " + toSignatureString(NCL2));
}
din.skipBytes(8);
int numColors = din.readInt();
NamedColorSpace[] result = new NamedColorSpace[numColors];
int numDeviceCoord = din.readInt();
String prefix = readAscii(din, 32);
String suffix = readAscii(din, 32);
for (int i = 0; i < numColors; i++) {
String name = prefix + readAscii(din, 32) + suffix;
int[] pcs = readUInt16Array(din, 3);