Package org.apache.poi.hmef.attribute
Class MAPIDateAttribute
- java.lang.Object
-
- org.apache.poi.hmef.attribute.MAPIAttribute
-
- org.apache.poi.hmef.attribute.MAPIDateAttribute
-
public final class MAPIDateAttribute extends MAPIAttribute
A pure-MAPI attribute holding a Date, which applies to aHMEFMessageor one of itsAttachments. Timestamps are usually given in UTC.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMAPIDateAttribute(MAPIProperty property, int type, byte[] data)Constructs a single new date attribute from the id, type, and the contents of the stream
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DategetAsDate(MAPIAttribute attr)Returns the Date of a Attribute, converting as appropriateDategetDate()StringtoString()-
Methods inherited from class org.apache.poi.hmef.attribute.MAPIAttribute
create, getData, getMaxRecordLength, getProperty, getType, setMaxRecordLength
-
-
-
-
Constructor Detail
-
MAPIDateAttribute
protected MAPIDateAttribute(MAPIProperty property, int type, byte[] data)
Constructs a single new date attribute from the id, type, and the contents of the stream
-
-
Method Detail
-
getDate
public Date getDate()
-
toString
public String toString()
- Overrides:
toStringin classMAPIAttribute
-
getAsDate
public static Date getAsDate(MAPIAttribute attr)
Returns the Date of a Attribute, converting as appropriate
-
-