Package org.apache.poi.hmef.attribute
Class TNEFAttribute
java.lang.Object
org.apache.poi.hmef.attribute.TNEFAttribute
- Direct Known Subclasses:
TNEFDateAttribute,TNEFMAPIAttribute,TNEFStringAttribute
An attribute which applies to a
HMEFMessage
or one of its Attachments.
Note - the types and IDs differ from standard Outlook/MAPI
ones, so we can't just re-use the HSMF ones.-
Method Summary
Modifier and TypeMethodDescriptionstatic TNEFAttributecreate(InputStream inp) Creates a new TNEF Attribute by reading data from the stream within aHMEFMessagebyte[]getData()static intintgetType()static voidsetMaxRecordLength(int length) toString()
-
Method Details
-
setMaxRecordLength
public static void setMaxRecordLength(int length) - Parameters:
length- the max record length allowed for TNEFAttribute
-
getMaxRecordLength
public static int getMaxRecordLength()- Returns:
- the max record length allowed for TNEFAttribute
-
create
Creates a new TNEF Attribute by reading data from the stream within aHMEFMessage- Throws:
IOException
-
getProperty
-
getType
public int getType() -
getData
public byte[] getData() -
toString
-