public class MAPIPropName
extends java.lang.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,
java.lang.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(java.lang.Object o)
Returns whether this MAPIPropName is identical to the given MAPIPropName.
|
GUID |
getGUID()
Gets the MAPIPropName GUID.
|
long |
getID()
Gets the MAPIPropName ID.
|
java.lang.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.
|
java.lang.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 java.io.IOException
data
- the TNEF stream containing the property name datajava.io.IOException
- 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 MAPIPropName(GUID guid, java.lang.String name)
guid
- the property GUIDname
- the property namepublic GUID getGUID()
public int getType()
public long getID()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
true
if this object is the same as the obj argument;
false
otherwisepublic int hashCode()
hashCode
in class java.lang.Object
protected int getRawLength()
Copyright © 2021. All Rights Reserved.