com.aspose.email

com.aspose.email

Class MapiProperty

Direct Known Subclasses:
MapiNamedProperty, MapiObjectProperty
public class MapiProperty
extends Object

Represents the mapi property.

Constructor Summary
MapiProperty(longtag, byte[]data)
Initializes a new instance of the MapiProperty class.
MapiProperty(longtag, List values)
Initializes a new instance of the MapiProperty class.
MapiProperty(longtag, longsigned, byte[]data)
Initializes a new instance of the MapiProperty class.
MapiProperty(String name, longtag, longsigned, byte[]data)
Initializes a new instance of the MapiProperty class.
 
Method Summary
boolean
getBoolean()
Gets the first bytes of the binary data as boolean.
byte[]
getData()
Gets the binary data.
int
getDataType()
Gets the data type.
long
getIdentifier()
Gets the indifier.
int
getInt32()
Gets the first 4 bytes of the binary data as int32.
long
getLong()
Gets the first 8 bytes of the binary data as long.
getMVEntries()
Gets the MV entries list.
getName()
Gets the name.
getPropertyTagName()
Gets the PropertyName.
short
getShort()
Gets the first 2 bytes of the binary data as short.
getString()
Gets the binary data as string.
getString(intcodepage)
Gets the binary data as string using the specified code page.
long
getTag()
Gets the tag.
boolean
isSigned()
Indicates whether the binary data is signed.
toString()
Returns a T:System.String that represents the current T:System.Object.
 
Methods inherited from class java.lang.Object
 

    • Constructor Detail

      • MapiProperty

        public MapiProperty(String name,
                            long tag,
                            long signed,
                            byte[] data)

        Initializes a new instance of the MapiProperty class.

        Parameters:
        name - The name.
        tag - The tag key of the property.
        signed - Indicates the data is signed or not.
        data - The binary data of the property.
      • MapiProperty

        public MapiProperty(long tag,
                            long signed,
                            byte[] data)

        Initializes a new instance of the MapiProperty class.

        Parameters:
        tag - The tag.
        signed - The signed.
        data - The data.
      • MapiProperty

        public MapiProperty(long tag,
                            byte[] data)

        Initializes a new instance of the MapiProperty class.

        Parameters:
        tag - The tag key of the property.
        data - The binary data of the property.
      • MapiProperty

        public MapiProperty(long tag,
                            List values)

        Initializes a new instance of the MapiProperty class. This overload is used to create a multiple valued property, PT_MV_*.

        Parameters:
        tag - The tag.
        values - The values.
    • Method Detail

      • getPropertyTagName

        public String getPropertyTagName()

        Gets the PropertyName.

      • getName

        public String getName()

        Gets the name.

      • getIdentifier

        public long getIdentifier()

        Gets the indifier.

      • getTag

        public long getTag()

        Gets the tag.

      • getDataType

        public int getDataType()

        Gets the data type.

      • getData

        public byte[] getData()

        Gets the binary data.

      • getLong

        public long getLong()

        Gets the first 8 bytes of the binary data as long.

        Returns:
        The long value.
      • getInt32

        public int getInt32()

        Gets the first 4 bytes of the binary data as int32.

        Returns:
        The int32 value.
      • getShort

        public short getShort()

        Gets the first 2 bytes of the binary data as short.

        Returns:
        The short value.
      • getBoolean

        public boolean getBoolean()

        Gets the first bytes of the binary data as boolean.

        Returns:
        The boolean value.
      • getDateTime

        public Date getDateTime()
      • getString

        public String getString(int codepage)

        Gets the binary data as string using the specified code page.

        Parameters:
        codepage - The code page.
        Returns:
        A string contains the binary data.
      • getString

        public String getString()

        Gets the binary data as string.

        Returns:
        A string contains the binary data.
      • isSigned

        public boolean isSigned()

        Indicates whether the binary data is signed.

      • getMVEntries

        public List getMVEntries()

        Gets the MV entries list.

      • toString

        public String toString()

        Returns a T:System.String that represents the current T:System.Object.

        Overrides:
        toString in class Object
        Returns:
        A T:System.String that represents the current T:System.Object.