Package gov.nih.mipav.model.file
Class MetadataExtractor.IccDescriptor
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor<MetadataExtractor.IccDirectory>
-
- gov.nih.mipav.model.file.MetadataExtractor.IccDescriptor
-
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.IccDescriptor extends MetadataExtractor.TagDescriptor<MetadataExtractor.IccDirectory>
- Author:
- Yuri Binev, Drew Noakes https://drewnoakes.com
-
-
Field Summary
Fields Modifier and Type Field Description private static int
ICC_TAG_TYPE_CURV
private static int
ICC_TAG_TYPE_DESC
private static int
ICC_TAG_TYPE_MEAS
private static int
ICC_TAG_TYPE_MLUC
private static int
ICC_TAG_TYPE_SIG
private static int
ICC_TAG_TYPE_TEXT
private static int
ICC_TAG_TYPE_XYZ_ARRAY
-
Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
_directory
-
-
Constructor Summary
Constructors Constructor Description IccDescriptor(MetadataExtractor.IccDirectory directory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatDoubleAsString(double value, int precision, boolean zeroes)
java.lang.String
getDescription(int tagType)
Returns a descriptive value of the specified tag for this image.private int
getInt32FromString(java.lang.String string)
private java.lang.String
getPlatformDescription()
private java.lang.String
getProfileClassDescription()
private java.lang.String
getProfileVersionDescription()
private java.lang.String
getRenderingIntentDescription()
private java.lang.String
getTagDataString(int tagType)
-
Methods inherited from class gov.nih.mipav.model.file.MetadataExtractor.TagDescriptor
convertBytesToVersionString, get7BitStringFromBytes, getBitFlagDescription, getByteLengthDescription, getDecimalRational, getEncodedTextDescription, getEpochTimeDescription, getFocalLengthDescription, getFormattedFloat, getFormattedInt, getFormattedString, getFStopDescription, getIndexedDescription, getIndexedDescription, getLensSpecificationDescription, getOrientationDescription, getRationalOrDoubleString, getShutterSpeedDescription, getSimpleRational, getStringFromBytes, getVersionBytesDescription
-
-
-
-
Field Detail
-
ICC_TAG_TYPE_TEXT
private static final int ICC_TAG_TYPE_TEXT
- See Also:
- Constant Field Values
-
ICC_TAG_TYPE_DESC
private static final int ICC_TAG_TYPE_DESC
- See Also:
- Constant Field Values
-
ICC_TAG_TYPE_SIG
private static final int ICC_TAG_TYPE_SIG
- See Also:
- Constant Field Values
-
ICC_TAG_TYPE_MEAS
private static final int ICC_TAG_TYPE_MEAS
- See Also:
- Constant Field Values
-
ICC_TAG_TYPE_XYZ_ARRAY
private static final int ICC_TAG_TYPE_XYZ_ARRAY
- See Also:
- Constant Field Values
-
ICC_TAG_TYPE_MLUC
private static final int ICC_TAG_TYPE_MLUC
- See Also:
- Constant Field Values
-
ICC_TAG_TYPE_CURV
private static final int ICC_TAG_TYPE_CURV
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IccDescriptor
public IccDescriptor(MetadataExtractor.IccDirectory directory)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription(int tagType)
Description copied from class:MetadataExtractor.TagDescriptor
Returns a descriptive value of the specified tag for this image. Where possible, known values will be substituted here in place of the raw tokens actually kept in the metadata segment. If no substitution is available, the value provided bygetString(tagType)
will be returned.- Overrides:
getDescription
in classMetadataExtractor.TagDescriptor<MetadataExtractor.IccDirectory>
- Parameters:
tagType
- the tag to find a description for- Returns:
- a description of the image's value for the specified tag, or
null
if the tag hasn't been defined.
-
getTagDataString
private java.lang.String getTagDataString(int tagType)
-
formatDoubleAsString
public java.lang.String formatDoubleAsString(double value, int precision, boolean zeroes)
-
getRenderingIntentDescription
private java.lang.String getRenderingIntentDescription()
-
getPlatformDescription
private java.lang.String getPlatformDescription()
-
getProfileClassDescription
private java.lang.String getProfileClassDescription()
-
getProfileVersionDescription
private java.lang.String getProfileVersionDescription()
-
getInt32FromString
private int getInt32FromString(java.lang.String string) throws java.io.IOException
- Throws:
java.io.IOException
-
-