public class MAPIValue
extends java.lang.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.
|
java.lang.Object |
getValue()
Returns the value encapsulated by this MAPIValue.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
public MAPIValue(int type, RawInputStream data, int length) throws java.io.IOException
type
- the value typedata
- the TNEF stream containing the valuelength
- the length of the value data (in bytes)java.lang.IllegalArgumentException
- if type is invalidjava.io.IOException
- 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 java.io.IOException
java.io.IOException
- if the stream end is reached, or if an I/O error occurspublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getValue() throws java.io.IOException
java.io.IOException
- if the stream end is reached, or if an I/O error occursCopyright © 2021. All Rights Reserved.