public class MAPIProps
extends java.lang.Object
MAPIProps class encapsulates a collection of MAPI
properties.| Constructor and Description |
|---|
MAPIProps(MAPIProp[] props)
Creates MAPIProps using the given properties.
|
MAPIProps(RawInputStream data)
Creates MAPIProps using the given TNEF stream.
|
| Modifier and Type | Method and Description |
|---|---|
MAPIProp |
getProp(int ID)
Gets a property with the given ID.
|
MAPIProp |
getProp(MAPIPropName name)
Gets a property with the given name.
|
MAPIProp[] |
getProps()
Gets all the properties.
|
java.lang.Object |
getPropValue(int ID)
Gets the first value of a specific MAPI property, if it exists.
|
java.lang.Object |
getPropValue(MAPIPropName name)
Gets the first value of a specific MAPI property, if it exists.
|
protected int |
getRawLength()
Gets the raw data length (in bytes) of this instance.
|
public MAPIProps(RawInputStream data) throws java.io.IOException
data - the TNEF stream containing property datajava.io.IOException - if the stream end is reached, or if an I/O error occurspublic MAPIProps(MAPIProp[] props)
props - an array of MAPI propertiespublic MAPIProp[] getProps()
public MAPIProp getProp(int ID)
ID - the requested property IDpublic MAPIProp getProp(MAPIPropName name)
name - the requested property namepublic java.lang.Object getPropValue(int ID)
throws java.io.IOException
ID - the ID of the requested propertyjava.io.IOException - if an I/O error occurspublic java.lang.Object getPropValue(MAPIPropName name) throws java.io.IOException
name - the name of the requested propertyjava.io.IOException - if an I/O error occursprotected int getRawLength()
Copyright © 2024. All Rights Reserved.