public class MapiProperty extends Object
Represents the mapi property.
Modifier and Type | Field and Description |
---|---|
protected byte[] |
data |
protected long |
signedFlag |
protected long |
tag |
Modifier | Constructor and Description |
---|---|
protected |
MapiProperty()
Initializes a new instance of the
MapiProperty class. |
|
MapiProperty(long tag)
Initializes a new instance of the MapiProperty class.
|
|
MapiProperty(long tag,
byte[] data)
Initializes a new instance of the MapiProperty class.
|
|
MapiProperty(long tag,
Iterable<?> values)
Initializes a new instance of the
MapiProperty class. |
|
MapiProperty(long tag,
long signedParam,
byte[] data)
Initializes a new instance of the
MapiProperty class. |
|
MapiProperty(String name,
long tag,
long signedParam,
byte[] data)
Initializes a new instance of the MapiProperty class.
|
Modifier and Type | Method and Description |
---|---|
static MapiProperty |
createMapiPropertyFromBytes(long tag,
byte[] data)
Creates the mapi property from bytes.
|
static MapiProperty |
createMapiPropertyFromDateTime(long tag,
Date data)
Creates the mapi property from date time.
|
static MapiProperty |
createMapiPropertyFromLong(long tag,
long data)
Creates the mapi property from long.
|
static MapiProperty |
createMapiPropertyFromLong(long tag,
long data,
long delimiter)
Creates the mapi property from long.
|
boolean |
getBoolean()
Gets the first bytes of the binary data as boolean.
|
BigDecimal |
getCurrency() |
byte[] |
getData()
Gets the binary data.
|
int |
getDataType()
Gets the data type.
|
Date |
getDateTime()
Gets the first bytes of the binary data as datetime.
|
PropertyDescriptor |
getDescriptor()
Gets descriptor of MAPI property
|
double |
getDouble()
Gets the bytes of the binary data as double.
|
float |
getFloat()
Gets the bytes of the binary data as float.
|
Date |
getFloatingDate() |
UUID |
getGuidValue() |
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.
|
com.aspose.ms.System.Collections.IList |
getMVEntries()
Gets the MV entries list.
|
String |
getName()
Gets the name.
|
String |
getPropertyTagName()
Gets the PropertyName.
|
short |
getShort()
Gets the first 2 bytes of the binary data as short.
|
String |
getString()
Gets the binary data as string.
|
String |
getString(int codepage)
Gets the binary data as string using the specified code page.
|
long |
getTag()
Gets the tag.
|
Object |
getValue()
Gets value as object
|
boolean |
isNamed()
Indicates whether the property is a named property.
|
boolean |
isSigned()
Indicates whether the binary data is signed.
|
void |
setSigned(boolean value)
Indicates whether the binary data is signed.
|
String |
toString()
Returns a
T:System.String that represents the current T:System.Object . |
protected MapiProperty()
Initializes a new instance of the MapiProperty
class.
public MapiProperty(long tag, byte[] data)
Initializes a new instance of the MapiProperty class.
tag
- The tag key of the property.data
- The binary data of the property.public MapiProperty(long tag)
Initializes a new instance of the MapiProperty class.
tag
- The tag key of the property.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_*.
tag
- The property tag.values
- The values.public MapiProperty(long tag, long signedParam, byte[] data)
Initializes a new instance of the MapiProperty
class.
tag
- The property tag.signedParam
- The signed.data
- The property data.public MapiProperty(String name, long tag, long signedParam, byte[] data)
Initializes a new instance of the MapiProperty class.
name
- The name.tag
- The tag key of the property.signedParam
- Indicates the data is signed or not.data
- The binary data of the property.public String getPropertyTagName()
Gets the PropertyName.
public String getName()
Gets the name.
public long getIdentifier()
Gets the indifier.
public long getTag()
Gets the tag.
public int getDataType()
Gets the data type.
public byte[] getData()
Gets the binary data.
public com.aspose.ms.System.Collections.IList getMVEntries()
Gets the MV entries list.
public boolean isSigned()
Indicates whether the binary data is signed.
public void setSigned(boolean value)
Indicates whether the binary data is signed.
public boolean isNamed()
Indicates whether the property is a named property.
public long getLong()
Gets the first 8 bytes of the binary data as long.
public int getInt32()
Gets the first 4 bytes of the binary data as int32.
public short getShort()
Gets the first 2 bytes of the binary data as short.
public boolean getBoolean()
Gets the first bytes of the binary data as boolean.
public Date getDateTime()
Gets the first bytes of the binary data as datetime.
public String getString()
Gets the binary data as string.
public PropertyDescriptor getDescriptor()
Gets descriptor of MAPI property
public Object getValue()
Gets value as object
public BigDecimal getCurrency()
public String getString(int codepage)
Gets the binary data as string using the specified code page.
codepage
- The code page.public Date getFloatingDate()
public UUID getGuidValue()
public double getDouble()
Gets the bytes of the binary data as double.
public float getFloat()
Gets the bytes of the binary data as float.
public String toString()
Returns a T:System.String
that represents the current T:System.Object
.
public static MapiProperty createMapiPropertyFromLong(long tag, long data)
Creates the mapi property from long.
tag
- The tag.data
- The data.public static MapiProperty createMapiPropertyFromLong(long tag, long data, long delimiter)
Creates the mapi property from long.
tag
- The tag.data
- The data.delimiter
- The delimiter.public static MapiProperty createMapiPropertyFromBytes(long tag, byte[] data)
Creates the mapi property from bytes.
tag
- The tag.data
- The data.public static MapiProperty createMapiPropertyFromDateTime(long tag, Date data)
Creates the mapi property from date time.
tag
- The tag.data
- The data.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.