Class TNEFAttribute

java.lang.Object
org.apache.poi.hmef.attribute.TNEFAttribute
Direct Known Subclasses:
TNEFDateAttribute, TNEFMAPIAttribute, TNEFStringAttribute

public class TNEFAttribute extends Object
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 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

      public static TNEFAttribute create(InputStream inp) throws IOException
      Creates a new TNEF Attribute by reading data from the stream within a HMEFMessage
      Throws:
      IOException
    • getProperty

      public TNEFProperty getProperty()
    • getType

      public int getType()
    • getData

      public byte[] getData()
    • toString

      public String toString()
      Overrides:
      toString in class Object