Class OutputIntent

    • Constructor Summary

      Constructors 
      Constructor Description
      OutputIntent​(java.lang.String type, java.lang.String identifier, java.awt.color.ColorSpace colorspace)
      Create a new OutputIntent
      OutputIntent​(java.lang.String type, java.lang.String identifier, java.awt.color.ColorSpace colorspace, java.lang.String description, java.lang.String info, java.lang.String registry)
      Create a new OutputIntent
      OutputIntent​(java.lang.String type, OutputIntent source)
      Create a new OutputIntent which is a copy of the supplied Intent, but with a new Type
      OutputIntent​(OutputIntent source)
      Create a duplicate of the supplied OutputIntent.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object clone()  
      ICCColorSpace getColorSpace()
      Get the embedded ICCColorSpace of the Output Intent, if one is included, or null if it is invalid or missing.
      java.lang.String getDescription()
      Get the description of the Output Condition, if specified.
      java.lang.String getIdentifier()
      Get the Output Condition Identifier, eg.
      java.lang.String getInfo()
      Get the Info field of the Output Intent, if specified.
      java.lang.String getRegistry()
      Get the registry of the Output Condition if specified, eg.
      java.lang.String getType()
      Get the Output Condition Identifier, eg.
      OutputProfile.Feature[] isCompatibleWith​(OutputProfile target)
      Return the list of features of this OutputIntent that are incompatible with the supplied target OutputProfile, or null if this OutputIntent is compatible
      void putLiteral​(java.lang.String key, java.lang.String tokens)
      Put a literal token sequnce.
      void setDescription​(java.lang.String description)
      Set the Description field of the Output Condition.
      void setInfo​(java.lang.String info)
      Set the Info field of the Output Condition.
      void setRegistry​(java.lang.String registry)
      Set the RegistryName field of the Output Condition.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OutputIntent

        public OutputIntent​(java.lang.String type,
                            java.lang.String identifier,
                            java.awt.color.ColorSpace colorspace)
        Create a new OutputIntent
        Parameters:
        type - the type of OutputIntent - usually one of "GTS_PDFA1", "GTS_PDX" or "ISO_PDFE1". Required.
        identifier - the name of the Output Condition, eg "FOGRA39" or "CGATS TR 001". If null, we will try to use the description from the ICCColorSpace if available, but if this is empty or null we'll throw an Exception.
        colorspace - the ColorSpace, which must be a ICCColorSpace or ICC_ColorSpace, and must be GrayScale, RGB or CMYK. If null and the identifier is "sRGB" this will be auto-populated, otherwise a null value leaves the ColorSpace unset.
      • OutputIntent

        public OutputIntent​(java.lang.String type,
                            java.lang.String identifier,
                            java.awt.color.ColorSpace colorspace,
                            java.lang.String description,
                            java.lang.String info,
                            java.lang.String registry)
        Create a new OutputIntent
        Parameters:
        type - the type of OutputIntent - usually one of "GTS_PDFA1", "GTS_PDX" or "ISO_PDFE1". Required.
        identifier - the name of the Output Condition, eg "FOGRA39" or "CGATS TR 001". If null, we will try to use the description from the ICCColorSpace if available, but if this is empty or null we'll throw an Exception.
        colorspace - the ColorSpace, which must be a ICCColorSpace or ICC_ColorSpace, and must be GrayScale, RGB or CMYK. If null and the identifier is "sRGB" this will be auto-populated, otherwise a null value leaves the ColorSpace unset.
        description - if not null, the value to pass to setDescription(java.lang.String)
        info - if not null, the value to pass to setInfo(java.lang.String)
        registry - if not null, the value to pass to setRegistry(java.lang.String)
      • OutputIntent

        public OutputIntent​(java.lang.String type,
                            OutputIntent source)
        Create a new OutputIntent which is a copy of the supplied Intent, but with a new Type
        Parameters:
        type - the type of OutputIntent - usually one of "GTS_PDFA1", "GTS_PDX" or "ISO_PDFE1"
        source - the OutputIntent to duplicate
      • OutputIntent

        public OutputIntent​(OutputIntent source)
        Create a duplicate of the supplied OutputIntent. Calls this(source.getType(), source)
    • Method Detail

      • getType

        public java.lang.String getType()
        Get the Output Condition Identifier, eg. "GTS_PDFX"
      • getIdentifier

        public java.lang.String getIdentifier()
        Get the Output Condition Identifier, eg. "CGATS TR 001"
      • getDescription

        public java.lang.String getDescription()
        Get the description of the Output Condition, if specified.
      • getRegistry

        public java.lang.String getRegistry()
        Get the registry of the Output Condition if specified, eg. "http://www.color.org"
      • getInfo

        public java.lang.String getInfo()
        Get the Info field of the Output Intent, if specified.
      • setDescription

        public void setDescription​(java.lang.String description)
        Set the Description field of the Output Condition.
      • setInfo

        public void setInfo​(java.lang.String info)
        Set the Info field of the Output Condition.
      • setRegistry

        public void setRegistry​(java.lang.String registry)
        Set the RegistryName field of the Output Condition.
      • getColorSpace

        public ICCColorSpace getColorSpace()
        Get the embedded ICCColorSpace of the Output Intent, if one is included, or null if it is invalid or missing.
      • isCompatibleWith

        public OutputProfile.Feature[] isCompatibleWith​(OutputProfile target)
        Return the list of features of this OutputIntent that are incompatible with the supplied target OutputProfile, or null if this OutputIntent is compatible
      • toString

        public java.lang.String toString()
      • putLiteral

        public void putLiteral​(java.lang.String key,
                               java.lang.String tokens)
        Put a literal token sequnce. For debugging
        Parameters:
        key - the key
        tokens - the token sequence, eg "true" or "/foo" or "[/Foo/Bar]". No refs, just direct objects.
      • clone

        protected java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object