public class MAPIProps extends 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.
|
Object |
getPropValue(int ID)
Gets the first value of a specific MAPI property, if it exists.
|
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 IOException
data
- the TNEF stream containing property dataIOException
- 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 Object getPropValue(int ID) throws IOException
ID
- the ID of the requested propertyIOException
- if an I/O error occurspublic Object getPropValue(MAPIPropName name) throws IOException
name
- the name of the requested propertyIOException
- if an I/O error occursprotected int getRawLength()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.