public final class MimeContent extends ComplexProperty
Constructor and Description |
---|
MimeContent()
Initializes a new instance of the class.
|
MimeContent(String characterSet,
byte[] content)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
String |
getCharacterSet()
Gets the character set of the content.
|
byte[] |
getContent()
Gets the character set of the content.
|
void |
readAttributesFromXml(EwsServiceXmlReader reader)
Reads attribute from XML.
|
void |
readTextValueFromXml(EwsServiceXmlReader reader)
Reads text value from XML.
|
void |
setCharacterSet(String characterSet)
Sets the character set.
|
void |
setContent(byte[] content)
Sets the content.
|
String |
toString()
Writes attribute to XML.
|
void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes attribute to XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
public MimeContent()
public MimeContent(String characterSet, byte[] content)
characterSet
- the character setcontent
- the contentpublic void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
readAttributesFromXml
in class ComplexProperty
reader
- the readerException
- the exceptionpublic void readTextValueFromXml(EwsServiceXmlReader reader) throws XMLStreamException, ServiceXmlDeserializationException
readTextValueFromXml
in class ComplexProperty
reader
- the readerXMLStreamException
- the XML stream exceptionServiceXmlDeserializationException
- the service xml deserialization exceptionpublic void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ComplexProperty
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException
writeElementsToXml
in class ComplexProperty
writer
- the writerXMLStreamException
- the XML stream exceptionpublic String getCharacterSet()
public void setCharacterSet(String characterSet)
characterSet
- the new character setpublic byte[] getContent()
public void setContent(byte[] content)
content
- the new contentCopyright © 2012–2015 Microsoft. All rights reserved.