|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.datadosen.imaging.exif.ImageInfoFormatter
public class ImageInfoFormatter
Formats raw EXIF metadata in a display-friendly way.
| Field Summary | |
|---|---|
protected static TagFormatter |
commentFormatter
This formatter makes sure that a comment is ALWAYS a string. |
protected TagFormatter |
dateFormatter
|
protected static TagFormatter |
floatFormatter
|
protected static TagFormatter |
meterFormatter
|
protected TagFormatter |
millimeter35EqFormatter
|
protected static TagFormatter |
millimeterFormatter
|
protected static TagFormatter |
secondFormatter
|
| Constructor Summary | |
|---|---|
ImageInfoFormatter()
|
|
ImageInfoFormatter(com.drew.metadata.Metadata info)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
format(int tagType)
Format the specified tagType to the most natural form This version requires a Metadata object to be passed to the constructor |
java.lang.Object |
format(java.lang.Object data,
int tagType)
Format the specified tagType to the most natural form |
java.text.DateFormat |
getDateFormat()
|
static void |
main(java.lang.String[] args)
Command line method, for testing. |
static java.util.Date |
parseExifDate(java.lang.String exifDate)
|
void |
put(int tagType,
TagFormatter tf)
|
protected static float |
roundOneDec(float f)
|
void |
setDateFormat(java.text.DateFormat df)
|
void |
setMetadata(com.drew.metadata.Metadata info)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static TagFormatter meterFormatter
protected static TagFormatter millimeterFormatter
protected TagFormatter millimeter35EqFormatter
protected static TagFormatter floatFormatter
protected static TagFormatter commentFormatter
protected static TagFormatter secondFormatter
protected TagFormatter dateFormatter
| Constructor Detail |
|---|
public ImageInfoFormatter()
public ImageInfoFormatter(com.drew.metadata.Metadata info)
| Method Detail |
|---|
protected static float roundOneDec(float f)
public void setDateFormat(java.text.DateFormat df)
public java.text.DateFormat getDateFormat()
public void setMetadata(com.drew.metadata.Metadata info)
public static java.util.Date parseExifDate(java.lang.String exifDate)
public void put(int tagType,
TagFormatter tf)
public java.lang.Object format(java.lang.Object data,
int tagType)
throws com.drew.metadata.MetadataException
data - tagType -
com.drew.metadata.MetadataException
public java.lang.Object format(int tagType)
throws com.drew.metadata.MetadataException
tagType -
com.drew.metadata.MetadataException
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||