public class TNEFAttribute extends Object
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.| Modifier | Constructor and Description |
|---|---|
protected |
TNEFAttribute(int id,
int type,
InputStream inp)
Constructs a single new attribute from the id, type,
and the contents of the stream
|
| Modifier and Type | Method and Description |
|---|---|
static TNEFAttribute |
create(InputStream inp)
Creates a new TNEF Attribute by reading data from
the stream within a
HMEFMessage |
byte[] |
getData() |
static int |
getMaxRecordLength() |
TNEFProperty |
getProperty() |
int |
getType() |
static void |
setMaxRecordLength(int length) |
String |
toString() |
protected TNEFAttribute(int id,
int type,
InputStream inp)
throws IOException
IOExceptionpublic static void setMaxRecordLength(int length)
length - the max record length allowed for TNEFAttributepublic static int getMaxRecordLength()
public static TNEFAttribute create(InputStream inp) throws IOException
HMEFMessageIOExceptionpublic TNEFProperty getProperty()
public int getType()
public byte[] getData()