public class TagDescriptor<T extends Directory>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected T |
_directory |
Constructor and Description |
---|
TagDescriptor(T directory) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertBytesToVersionString(int[] components,
int majorDigits)
Takes a series of 4 bytes from the specified offset, and converts these to a
well-known version number, where possible.
|
protected java.lang.String |
get7BitStringFromBytes(int tagType) |
protected java.lang.String |
getBitFlagDescription(int tagType,
java.lang.Object... labels)
LSB first.
|
protected java.lang.String |
getByteLengthDescription(int tagType) |
protected java.lang.String |
getDecimalRational(int tagType,
int decimalPlaces) |
java.lang.String |
getDescription(int tagType)
Returns a descriptive value of the specified tag for this image.
|
protected java.lang.String |
getEpochTimeDescription(int tagType) |
protected static java.lang.String |
getFocalLengthDescription(double mm) |
protected java.lang.String |
getFormattedFloat(int tagType,
java.lang.String format) |
protected java.lang.String |
getFormattedInt(int tagType,
java.lang.String format) |
protected java.lang.String |
getFormattedString(int tagType,
java.lang.String format) |
protected static java.lang.String |
getFStopDescription(double fStop) |
protected java.lang.String |
getIndexedDescription(int tagType,
int baseIndex,
java.lang.String... descriptions) |
protected java.lang.String |
getIndexedDescription(int tagType,
java.lang.String... descriptions) |
protected java.lang.String |
getLensSpecificationDescription(int tag) |
protected java.lang.String |
getLightSourceDescription(short wbtype) |
protected java.lang.String |
getOrientationDescription(int tag) |
protected java.lang.String |
getRationalOrDoubleString(int tagType) |
protected java.lang.String |
getShutterSpeedDescription(int tag) |
protected java.lang.String |
getSimpleRational(int tagType) |
protected java.lang.String |
getStringFromBytes(int tag,
java.nio.charset.Charset cs) |
protected java.lang.String |
getVersionBytesDescription(int tagType,
int majorDigits) |
public TagDescriptor(T directory)
public java.lang.String getDescription(int tagType)
getString(tagType)
will be returned.tagType
- the tag to find a description fornull
if the tag hasn't been defined.public static java.lang.String convertBytesToVersionString(int[] components, int majorDigits)
Two different formats are processed:
components
- the four version valuesmajorDigits
- the number of components to beprotected java.lang.String getVersionBytesDescription(int tagType, int majorDigits)
protected java.lang.String getIndexedDescription(int tagType, java.lang.String... descriptions)
protected java.lang.String getIndexedDescription(int tagType, int baseIndex, java.lang.String... descriptions)
protected java.lang.String getByteLengthDescription(int tagType)
protected java.lang.String getSimpleRational(int tagType)
protected java.lang.String getDecimalRational(int tagType, int decimalPlaces)
protected java.lang.String getFormattedInt(int tagType, java.lang.String format)
protected java.lang.String getFormattedFloat(int tagType, java.lang.String format)
protected java.lang.String getFormattedString(int tagType, java.lang.String format)
protected java.lang.String getEpochTimeDescription(int tagType)
protected java.lang.String getBitFlagDescription(int tagType, java.lang.Object... labels)
protected java.lang.String get7BitStringFromBytes(int tagType)
protected java.lang.String getStringFromBytes(int tag, java.nio.charset.Charset cs)
protected java.lang.String getRationalOrDoubleString(int tagType)
protected static java.lang.String getFStopDescription(double fStop)
protected static java.lang.String getFocalLengthDescription(double mm)
protected java.lang.String getLensSpecificationDescription(int tag)
protected java.lang.String getOrientationDescription(int tag)
protected java.lang.String getShutterSpeedDescription(int tag)
protected java.lang.String getLightSourceDescription(short wbtype)