public class Attributes extends Object
ImfStandardAttributes.h
for usage with EXRSimpleImage
.
An attribute not present in the EXR file will be null
or NaN
for floating point types.Modifier | Constructor and Description |
---|---|
|
Attributes()
Constructs a new
Attributes instance setting automatically the
owner and the date fields. |
protected |
Attributes(String owner,
String comments,
String capDate,
float utcOffset) |
Modifier and Type | Method and Description |
---|---|
String |
getComments()
Retrieves the image comments: additional image information in
human-readable form, for example a verbal description of the image.
|
Date |
getDate()
Returns the creation date (in UTC time) or
null
if the attribute is not present. |
String |
getOwner()
Retrieves the name of the owner of the image.
|
void |
setComments(String comments)
Sets the image comments: additional image information in
human-readable form, for example a verbal description of the image.
|
void |
setDate(Calendar cal)
Sets the creation time attribute according to the given
calendar, respecting time zones.
|
void |
setDate(Date date)
Sets the creation time attribute with the given UTC time.
|
void |
setOwner(String owner)
Sets the name of the owner of the image.
|
String |
toString()
Returns a string representation of the attributes.
|
public Attributes()
Attributes
instance setting automatically the
owner and the date fields. The owner will be the value of the System
property user.name
as defined in
System.getProperties()
. The date fields capDate
and
utcOffset
are set to the current time in the local time zone.
All other fields are left empty.public final void setDate(Calendar cal)
null
it clears the attribute.cal
- Calendar set up with the desired creation date
or null
.public final void setDate(Date date)
setDate(Calendar)
.
If it is null
it clears the attribute;date
- the desired creation date or null
.public String getOwner()
public final void setOwner(String owner)
null
.owner
- the new name of the owner of the image.public String getComments()
public final void setComments(String comments)
null
.comments
- the new image comments.public Date getDate()
null
if the attribute is not present.null
.