|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.network.outlook.MapiProperty
public class MapiProperty
Represents the mapi property.
Field Summary | |
---|---|
static int |
FLAG_PROPATTR_MANDATORY
If this flag is set for a property, that property MUST NOT be deleted from the .MSG file (irrespective of which storage it is contained in) and implementers MUST return an error if any attempt is made to do so. |
static int |
FLAG_PROPATTR_READABLE
If this flag is not set on a property, that property MUST not be read from the .MSG file and implementers MUST return an error if any attempt is made to read it. |
static int |
FLAG_PROPATTR_WRITABLE
If this flag is not set on a property, that property MUST not be modified or deleted and implementers MUST return an error if any attempt is made to do so. |
static long |
Signed
|
static long |
Unsigned
|
Constructor Summary | |
---|---|
MapiProperty(MapiPropertyTag tag,
boolean value,
int flags)
Creates MapiProperty using short as value. |
|
MapiProperty(MapiPropertyTag tag,
byte[] data,
int flags)
Creates MapiProperty using data. |
|
MapiProperty(MapiPropertyTag tag,
byte[] data,
int flags,
MapiPropertyName propertyName)
Creates MapiProperty using data and specify name of the property (NamedProperty). |
|
MapiProperty(MapiPropertyTag tag,
com.aspose.network.foundation.DateTime value,
int flags)
Creates MapiProperty using short as value. |
|
MapiProperty(MapiPropertyTag tag,
double value,
int flags)
Creates MapiProperty using double as value. |
|
MapiProperty(MapiPropertyTag tag,
float value,
int flags)
Creates MapiProperty using float as value. |
|
MapiProperty(MapiPropertyTag tag,
int value,
int flags)
Creates MapiProperty using int as value. |
|
MapiProperty(MapiPropertyTag tag,
long value,
int flags)
Creates MapiProperty using long as value. |
|
MapiProperty(MapiPropertyTag tag,
short value,
int flags)
Creates MapiProperty using short as value. |
|
MapiProperty(MapiPropertyTag tag,
String value,
int flags)
Creates MapiProperty using string as value. |
|
MapiProperty(MapiPropertyTag tag,
String value,
String encoding,
int flags)
Creates MapiProperty using string as value. |
|
MapiProperty(String name,
int tag,
int signed,
byte[] data)
|
Method Summary | |
---|---|
static byte[] |
calcDataLong(long byteCount,
long delimiter)
|
static MapiProperty |
createMapiPropertyFromBytes(int propertyTag,
byte[] data)
|
static MapiProperty |
createMapiPropertyFromLong(int propertyTag,
int data)
|
static MapiProperty |
createMapiPropertyFromLong(int propertyTag,
int data,
int flags)
|
Boolean |
getBoolean()
Gets the first bytes of the binary data as boolean. |
Byte |
getByte()
Gets the first byte of the binary data as byte. |
byte[] |
getData()
Gets the binary data. |
Date |
getDate()
Gets the first bytes of the binary data as datetime. |
Double |
getDouble()
Gets the first bytes of the binary data as double. |
Float |
getFloat()
Gets the first bytes of the binary data as float. |
Integer |
getIdentifier()
Gets the identifier of the named property. |
Integer |
getInt()
Gets the first bytes of the binary data as int. |
Long |
getLong()
Gets the first bytes of the binary data as long. |
String |
getName()
Gets the name of the named property. |
MapiPropertyName |
getPropertyName()
Gets the MapiPropertyName. |
MapiPropertyTag |
getPropertyTag()
Gets the property tag that specify mapi property |
String |
getPropertyTagName()
Gets the PropertyTagName. |
Short |
getShort()
Gets the first bytes of the binary data as short. |
long |
getSigned()
|
String |
getString()
Gets the first bytes of the binary data as string. |
String |
getString(int codePage)
Gets the first bytes of the binary data as string using code page. |
boolean |
isSigned()
Indicates whether the binary data is signed. |
void |
setPropertyName(MapiPropertyName propertyName)
Sets the name of the named property. |
void |
setSigned(long _signed)
|
String |
toString()
Returns a string representation of the object. |
String |
toString(int codePage)
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FLAG_PROPATTR_MANDATORY
public static final int FLAG_PROPATTR_READABLE
public static final int FLAG_PROPATTR_WRITABLE
public static long Signed
public static long Unsigned
Constructor Detail |
---|
public MapiProperty(MapiPropertyTag tag, byte[] data, int flags)
tag
- specifies mapi property, see MapiPropertyTag
data
- property dataflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
public MapiProperty(MapiPropertyTag tag, byte[] data, int flags, MapiPropertyName propertyName)
tag
- specifies mapi property, see MapiPropertyTag
data
- property dataflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
propertyName
- name of the propertypublic MapiProperty(MapiPropertyTag tag, boolean value, int flags)
tag
- specifies mapi property, see MapiPropertyTag
value
- property valueflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
public MapiProperty(MapiPropertyTag tag, com.aspose.network.foundation.DateTime value, int flags)
tag
- specifies mapi property, see MapiPropertyTag
value
- property valueflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
public MapiProperty(MapiPropertyTag tag, short value, int flags)
tag
- specifies mapi property, see MapiPropertyTag
value
- property valueflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
public MapiProperty(MapiPropertyTag tag, int value, int flags)
tag
- specifies mapi property, see MapiPropertyTag
value
- property valueflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
public MapiProperty(MapiPropertyTag tag, long value, int flags)
tag
- specifies mapi property, see MapiPropertyTag
value
- property valueflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
public MapiProperty(MapiPropertyTag tag, float value, int flags)
tag
- specifies mapi property, see MapiPropertyTag
value
- property valueflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
public MapiProperty(MapiPropertyTag tag, double value, int flags)
tag
- specifies mapi property, see MapiPropertyTag
value
- property valueflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
public MapiProperty(MapiPropertyTag tag, String value, int flags)
tag
- specifies mapi property, see MapiPropertyTag
value
- property valueflags
- combination of FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
of FLAG_PROPATTR_WRITABLE
public MapiProperty(MapiPropertyTag tag, String value, String encoding, int flags)
tag
- MapiPropertyTag
value
- string property valueencoding
- string encodingflags
- can be FLAG_PROPATTR_MANDATORY
, FLAG_PROPATTR_READABLE
or FLAG_PROPATTR_WRITABLE
public MapiProperty(String name, int tag, int signed, byte[] data)
Method Detail |
---|
public byte[] getData()
public Integer getIdentifier()
public String getName()
public void setPropertyName(MapiPropertyName propertyName)
propertyName
- name of the named propertypublic MapiPropertyName getPropertyName()
MapiPropertyName
public MapiPropertyTag getPropertyTag()
MapiPropertyTag
public String getPropertyTagName()
public Boolean getBoolean()
public Byte getByte()
public Short getShort()
public Integer getInt()
public Long getLong()
public Float getFloat()
public Double getDouble()
public String getString()
public String getString(int codePage)
codePage
- code page
public Date getDate()
public String toString()
toString
in class Object
public String toString(int codePage)
codePage
- code page
public long getSigned()
public void setSigned(long _signed)
public boolean isSigned()
public static MapiProperty createMapiPropertyFromLong(int propertyTag, int data, int flags)
public static MapiProperty createMapiPropertyFromLong(int propertyTag, int data)
public static MapiProperty createMapiPropertyFromBytes(int propertyTag, byte[] data)
public static byte[] calcDataLong(long byteCount, long delimiter)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |