Package org.verapdf.external
Class ICCProfile
java.lang.Object
org.verapdf.pd.PDObject
org.verapdf.external.ICCProfile
- Author:
- Maksim Bezrukov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOffset of cmm type in headerstatic final intOffset of color space in headerstatic final intOffset of creator in headerstatic final intOffset of device class in headerstatic final intOffset of device manufacturer in headerstatic final intOffset of device model in headerstatic final intLength of icc profile headerstatic final intExpected length for profile idstatic final intOffset of profile id in headerstatic final intOffset of rendering intent in headerstatic final intExpected length for device class and so onstatic final intOffset of subversion bytestatic final intLength of icc profile tag infostatic final intOffset of version bytestatic final intExpected length version -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.verapdf.pd.PDObject
clear, empty, getBooleanKey, getIntegerKey, getKey, getNameKey, getNameKeyStringValue, getObject, getRealKey, getStringKey, knownKey, removeKey, setBooleanKey, setIntegerKey, setKey, setNameKey, setObject, setObject, setStringKey, updateFromObject, updateToObject
-
Field Details
-
HEADER_LENGTH
public static final int HEADER_LENGTHLength of icc profile header- See Also:
-
TAGINFO_LENGTH
public static final int TAGINFO_LENGTHLength of icc profile tag info- See Also:
-
CMM_TYPE_OFFSET
public static final int CMM_TYPE_OFFSETOffset of cmm type in header- See Also:
-
DEVICE_CLASS_OFFSET
public static final int DEVICE_CLASS_OFFSETOffset of device class in header- See Also:
-
COLOR_SPACE_OFFSET
public static final int COLOR_SPACE_OFFSETOffset of color space in header- See Also:
-
DEVICE_MANUFACTURER_OFFSET
public static final int DEVICE_MANUFACTURER_OFFSETOffset of device manufacturer in header- See Also:
-
DEVICE_MODEL_OFFSET
public static final int DEVICE_MODEL_OFFSETOffset of device model in header- See Also:
-
RENDERING_INTENT_OFFSET
public static final int RENDERING_INTENT_OFFSETOffset of rendering intent in header- See Also:
-
CREATOR_OFFSET
public static final int CREATOR_OFFSETOffset of creator in header- See Also:
-
PROFILE_ID_OFFSET
public static final int PROFILE_ID_OFFSETOffset of profile id in header- See Also:
-
REQUIRED_LENGTH
public static final int REQUIRED_LENGTHExpected length for device class and so on- See Also:
-
PROFILE_ID_LENGTH
public static final int PROFILE_ID_LENGTHExpected length for profile id- See Also:
-
VERSION_LENGTH
public static final int VERSION_LENGTHExpected length version- See Also:
-
VERSION_BYTE
public static final int VERSION_BYTEOffset of version byte- See Also:
-
SUBVERSION_BYTE
public static final int SUBVERSION_BYTEOffset of subversion byte- See Also:
-
-
Constructor Details
-
ICCProfile
-
-
Method Details
-
getMD5
-
isLooksValid
public boolean isLooksValid()- Returns:
- true if all necessary fields can be obtained from icc profile header
-
getDeviceClass
- Returns:
- string representation of device class or null, if profile length is too small
-
getColorSpace
- Returns:
- string representation of color space or null, if profile length is too small
-
getCMMType
- Returns:
- string representation of cmm type or null, if profile length is too small
-
getCreator
- Returns:
- string representation of creator or null, if profile length is too small
-
getCreationDate
- Returns:
- calendar representation of creation date or null, if profile length is too small or contains zero value of creation date
-
getRenderingIntent
- Returns:
- string representation of rendering intent or null, if profile length is too small
-
getProfileID
- Returns:
- string representation of profile id or null, if profile length is too small
-
getDeviceModel
- Returns:
- string representation of device model or null, if profile length is too small
-
getDeviceManufacturer
- Returns:
- string representation of device manufacturer or null, if profile length is too small
-
getVersion
- Returns:
- version of ICC profile or null, if profile length is too small
-
getCopyright
- Returns:
- copyright of ICC profile or null, if profile length is too small or tag is missing
-
getDescription
- Returns:
- description of ICC profile or null, if profile length is too small or tag is missing
-
getNumberOfColorants
- Returns:
- number of colorants for ICC profile, described in profile dictionary
-
getRange
public double[] getRange()- Returns:
- range array value for ICC profile, described in profile dictionary
-
getAlternate
-
getMetadata
-