Package org.apache.poi.hmef.attribute
Class MAPIAttribute
java.lang.Object
org.apache.poi.hmef.attribute.MAPIAttribute
- Direct Known Subclasses:
MAPIDateAttribute,MAPIRtfAttribute,MAPIStringAttribute
A pure-MAPI attribute which applies to a
HMEFMessage
or one of its Attachments.-
Constructor Summary
ConstructorsConstructorDescriptionMAPIAttribute(MAPIProperty property, int type, byte[] data) Constructs a single new attribute from the contents of the stream -
Method Summary
Modifier and TypeMethodDescriptionstatic List<MAPIAttribute> create(TNEFAttribute parent) Parses a MAPI Properties TNEF Attribute, and returns the list of MAPI Attributes contained within itbyte[]getData()static intintgetType()static voidsetMaxRecordLength(int length) toString()
-
Constructor Details
-
MAPIAttribute
Constructs a single new attribute from the contents of the stream
-
-
Method Details
-
setMaxRecordLength
public static void setMaxRecordLength(int length) - Parameters:
length- the max record length allowed for MAPIAttribute
-
getMaxRecordLength
public static int getMaxRecordLength()- Returns:
- the max record length allowed for MAPIAttribute
-
getProperty
-
getType
public int getType() -
getData
public byte[] getData() -
toString
-
create
Parses a MAPI Properties TNEF Attribute, and returns the list of MAPI Attributes contained within it- Throws:
IOException
-