Package org.apache.poi.hmef.attribute
Class TNEFDateAttribute
- java.lang.Object
-
- org.apache.poi.hmef.attribute.TNEFAttribute
-
- org.apache.poi.hmef.attribute.TNEFDateAttribute
-
public final class TNEFDateAttribute extends TNEFAttribute
A Date attribute which applies to aHMEFMessageor one of itsAttachments.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTNEFDateAttribute(int id, int type, InputStream inp)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(TNEFAttribute attr)Returns the Date of a Attribute, converting as appropriateDategetDate()StringtoString()-
Methods inherited from class org.apache.poi.hmef.attribute.TNEFAttribute
create, getData, getMaxRecordLength, getProperty, getType, setMaxRecordLength
-
-
-
-
Constructor Detail
-
TNEFDateAttribute
protected TNEFDateAttribute(int id, int type, InputStream inp) throws IOExceptionConstructs a single new date attribute from the id, type, and the contents of the stream- Throws:
IOException
-
-
Method Detail
-
getDate
public Date getDate()
-
toString
public String toString()
- Overrides:
toStringin classTNEFAttribute
-
getAsDate
public static Date getAsDate(TNEFAttribute attr)
Returns the Date of a Attribute, converting as appropriate
-
-