public class MAPIValue extends Object
MAPIProp class encapsulates the value of a MAPI property.| Constructor and Description |
|---|
MAPIValue(int type,
RawInputStream data,
int length)
Constructs a MAPIValue containing a given value.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Gets the MAPIValue data.
|
int |
getLength()
Gets the MAPIValue data length (in bytes).
|
RawInputStream |
getRawData()
Gets the MAPIValue raw data.
|
int |
getType()
Gets the MAPIValue type.
|
Object |
getValue()
Returns the value encapsulated by this MAPIValue.
|
String |
toString()
Returns a string representation of this object.
|
public MAPIValue(int type,
RawInputStream data,
int length)
throws IOException
type - the value typedata - the TNEF stream containing the valuelength - the length of the value data (in bytes)IllegalArgumentException - if type is invalidIOException - if the stream end is reached,
or if an I/O error occurspublic int getType()
public int getLength()
public byte[] getData()
public RawInputStream getRawData() throws IOException
IOException - if the stream end is reached,
or if an I/O error occurspublic String toString()
public Object getValue() throws IOException
IOException - if the stream end is reached,
or if an I/O error occursThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.