net.freeutils.tnef

Class MAPIPropName

public class MAPIPropName extends Object

The 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.

Since: 2003-07-25

Field Summary
static intMNID_ID
MAPI property name type constant.
static intMNID_STRING
MAPI property name type constant.
Constructor Summary
MAPIPropName(RawInputStream data)
Constructs a MAPIPropName using the given TNEF stream.
MAPIPropName(GUID guid, long ID)
Constructs a MAPIPropName containing given values.
MAPIPropName(GUID guid, String name)
Constructs a MAPIPropName containing given values
Method Summary
booleanequals(Object o)
Returns whether this MAPIPropName is identical to the given MAPIPropName.
GUIDgetGUID()
Gets the MAPIPropName GUID.
longgetID()
Gets the MAPIPropName ID.
StringgetName()
Gets the MAPIPropName name.
protected intgetRawLength()
Gets the raw data length (in bytes) of this instance.
intgetType()
Gets the MAPIPropName type.
inthashCode()
Returns a hash code value for the object.
StringtoString()
Returns a string representation of the object.

Field Detail

MNID_ID

public static final int MNID_ID
MAPI property name type constant.

MNID_STRING

public static final int MNID_STRING
MAPI property name type constant.

Constructor Detail

MAPIPropName

public MAPIPropName(RawInputStream data)
Constructs a MAPIPropName using the given TNEF stream.

Parameters: data the TNEF stream containing the property name data

Throws: IOException if the stream end is reached, or if an I/O error occurs

MAPIPropName

public MAPIPropName(GUID guid, long ID)
Constructs a MAPIPropName containing given values.

Parameters: guid the property GUID ID the property ID

MAPIPropName

public MAPIPropName(GUID guid, String name)
Constructs a MAPIPropName containing given values

Parameters: guid the property GUID name the property name

Method Detail

equals

public boolean equals(Object o)
Returns whether this MAPIPropName is identical to the given MAPIPropName.

Returns: true if this object is the same as the obj argument; false otherwise

getGUID

public GUID getGUID()
Gets the MAPIPropName GUID.

Returns: the MAPIPropName GUID

getID

public long getID()
Gets the MAPIPropName ID.

Returns: the MAPIPropName ID

getName

public String getName()
Gets the MAPIPropName name.

Returns: the MAPIPropName name

getRawLength

protected int getRawLength()
Gets the raw data length (in bytes) of this instance.

Returns: the raw data length (in bytes) of this instance

getType

public int getType()
Gets the MAPIPropName type.

Returns: the MAPIPropName type

hashCode

public int hashCode()
Returns a hash code value for the object.

Returns: a hash code value for this object

toString

public String toString()
Returns a string representation of the object.

Returns: a string representation of the object