Class MAPIAttribute

java.lang.Object
org.apache.poi.hmef.attribute.MAPIAttribute
Direct Known Subclasses:
MAPIDateAttribute, MAPIRtfAttribute, MAPIStringAttribute

public class MAPIAttribute extends Object
A pure-MAPI attribute which applies to a HMEFMessage or one of its Attachments.
  • Constructor Details

    • MAPIAttribute

      public MAPIAttribute(MAPIProperty property, int type, byte[] data)
      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

      public MAPIProperty getProperty()
    • getType

      public int getType()
    • getData

      public byte[] getData()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • create

      public static List<MAPIAttribute> create(TNEFAttribute parent) throws IOException
      Parses a MAPI Properties TNEF Attribute, and returns the list of MAPI Attributes contained within it
      Throws:
      IOException