com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MapiProperty

    • Constructor Detail

      • MapiProperty

        protected MapiProperty()

        Initializes a new instance of the MapiProperty class.

      • 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,
                    Iterable<?> values)

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

        Parameters:
        tag - The property tag.
        values - The values.
      • MapiProperty

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

        Initializes a new instance of the MapiProperty class.

        Parameters:
        tag - The property tag.
        signed - The signed.
        data - The property data.
      • 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.
    • 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.

      • getMVEntries

        public com.aspose.ms.System.Collections.IList getMVEntries()

        Gets the MV entries list.

      • isSigned

        public boolean isSigned()

        Indicates whether the binary data is signed.

      • isNamed

        public boolean isNamed()

        Indicates whether the property is a named property.

      • 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()

        Gets the first bytes of the binary data as datetime.

        Returns:
        The datetime value.
      • getString

        public String getString()

        Gets the binary data as string.

        Returns:
        A string contains the binary data.
      • 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.
      • getDouble

        public double getDouble()

        Gets the bytes of the binary data as double.

        Returns:
        The double value.
      • getFloat

        public float getFloat()

        Gets the bytes of the binary data as float.

        Returns:
        The double value.
      • 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.
      • createMapiPropertyFromLong

        public static MapiProperty createMapiPropertyFromLong(long tag,
                                              long data)

        Creates the mapi property from long.

        Parameters:
        tag - The tag.
        data - The data.
        Returns:
      • createMapiPropertyFromLong

        public static MapiProperty createMapiPropertyFromLong(long tag,
                                              long data,
                                              long delimiter)

        Creates the mapi property from long.

        Parameters:
        tag - The tag.
        data - The data.
        delimiter - The delimiter.
        Returns:
      • createMapiPropertyFromBytes

        public static MapiProperty createMapiPropertyFromBytes(long tag,
                                               byte[] data)

        Creates the mapi property from bytes.

        Parameters:
        tag - The tag.
        data - The data.
        Returns:
      • createMapiPropertyFromDateTime

        public static MapiProperty createMapiPropertyFromDateTime(long tag,
                                                  Date data)

        Creates the mapi property from date time.

        Parameters:
        tag - The tag.
        data - The data.
        Returns: