public void dumpColorSpace(final String prefix, final ColorSpace cs) throws IOException {
        LOGGER.fine(prefix + ": " + "type: " + cs.getType() + " (" + colorSpaceTypeToName(cs) + ")");

        if (!(cs instanceof ICC_ColorSpace)) {
            LOGGER.fine(prefix + ": " + "Unknown ColorSpace: " + cs.getClass().getName());
            return;
        }

        final ICC_ColorSpace iccColorSpace = (ICC_ColorSpace) cs;
        final ICC_Profile iccProfile = iccColorSpace.getProfile();

        final byte[] bytes = iccProfile.getData();

        final IccProfileParser parser = new IccProfileParser();

        final IccProfileInfo info = parser.getIccProfileInfo(bytes);
        info.dump(prefix);
    }
Used to store metadata and descriptive information extracted from image files.
src/main/java/org/apache/commons/imaging/ImageDump.java