Class GFICCProfile
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.external.GFExternal
-
- org.verapdf.gf.model.impl.external.GFICCProfile
-
- All Implemented Interfaces:
Object
,External
,ICCProfile
- Direct Known Subclasses:
GFICCInputProfile
,GFICCOutputProfile
public class GFICCProfile extends GFExternal implements ICCProfile
- Author:
- Maksim Bezrukov
-
-
Field Summary
-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GFICCProfile(ICCProfile iccProfile, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getcolorSpace()
a four-byte string identifying the device class of the profile (GRAY, RGB, CMYK, LAB)String
getdeviceClass()
a four-byte string identifying the device class of the profile (monitor, printer, scanner, abstract color space)Boolean
getisValid()
Indicate validity of icc profile.Long
getN()
value of the N key in the ICC profile stream dictionaryDouble
getversion()
version of the ICC profile-
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getID, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Constructor Detail
-
GFICCProfile
protected GFICCProfile(ICCProfile iccProfile, String type)
-
-
Method Detail
-
getN
public Long getN()
Description copied from interface:ICCProfile
value of the N key in the ICC profile stream dictionary- Specified by:
getN
in interfaceICCProfile
- Returns:
- number of colorants for ICC profile, described in profile dictionary
-
getdeviceClass
public String getdeviceClass()
Description copied from interface:ICCProfile
a four-byte string identifying the device class of the profile (monitor, printer, scanner, abstract color space)- Specified by:
getdeviceClass
in interfaceICCProfile
- Returns:
- string representation of device class or null, if profile length is too small
-
getcolorSpace
public String getcolorSpace()
Description copied from interface:ICCProfile
a four-byte string identifying the device class of the profile (GRAY, RGB, CMYK, LAB)- Specified by:
getcolorSpace
in interfaceICCProfile
- Returns:
- string representation of color space or null, if profile length is too small
-
getversion
public Double getversion()
Description copied from interface:ICCProfile
version of the ICC profile- Specified by:
getversion
in interfaceICCProfile
- Returns:
- version of ICC profile or null, if profile length is too small
-
getisValid
public Boolean getisValid()
Indicate validity of icc profile.- Specified by:
getisValid
in interfaceICCProfile
- Returns:
- true if profile is valid, false if ICC header is less then 128 bytes or stream cannot be read. Other checks should be implemented by customer.
-
-