public class MAPIPropName extends Object
MAPIPropName
class encapsulates the name of a named MAPI property.
A MAPI Property name consists of a GUID, as well as either a 32-bit identifier
or a String.Modifier and Type | Field and Description |
---|---|
static int |
MNID_ID
MAPI property name type constant.
|
static int |
MNID_STRING
MAPI property name type constant.
|
Constructor and Description |
---|
MAPIPropName(GUID guid,
long ID)
Constructs a MAPIPropName containing given values.
|
MAPIPropName(GUID guid,
String name)
Constructs a MAPIPropName containing given values
|
MAPIPropName(RawInputStream data)
Constructs a MAPIPropName using the given TNEF stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns whether this MAPIPropName is identical to the given MAPIPropName.
|
GUID |
getGUID()
Gets the MAPIPropName GUID.
|
long |
getID()
Gets the MAPIPropName ID.
|
String |
getName()
Gets the MAPIPropName name.
|
protected int |
getRawLength()
Gets the raw data length (in bytes) of this instance.
|
int |
getType()
Gets the MAPIPropName type.
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
Returns a string representation of the object.
|
public static final int MNID_ID
public static final int MNID_STRING
public MAPIPropName(RawInputStream data) throws IOException
data
- the TNEF stream containing the property name dataIOException
- if the stream end is reached,
or if an I/O error occurspublic MAPIPropName(GUID guid, long ID)
guid
- the property GUIDID
- the property IDpublic GUID getGUID()
public int getType()
public long getID()
public String getName()
public String toString()
public boolean equals(Object o)
public int hashCode()
protected 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.