Class MimeContent
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.MimeContent
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class MimeContent extends ComplexProperty
Represents the MIME content of an item.
-
-
Constructor Summary
Constructors Constructor Description MimeContent()Initializes a new instance of the class.MimeContent(String characterSet, byte[] content)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCharacterSet()Gets the character set of the content.byte[]getContent()Gets the character set of the content.voidreadAttributesFromXml(EwsServiceXmlReader reader)Reads attribute from XML.voidreadTextValueFromXml(EwsServiceXmlReader reader)Reads text value from XML.voidsetCharacterSet(String characterSet)Sets the character set.voidsetContent(byte[] content)Sets the content.StringtoString()Writes attribute to XML.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes attribute to XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
MimeContent
public MimeContent()
Initializes a new instance of the class.
-
MimeContent
public MimeContent(String characterSet, byte[] content)
Initializes a new instance of the class.- Parameters:
characterSet- the character setcontent- the content
-
-
Method Detail
-
readAttributesFromXml
public void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
Reads attribute from XML.- Overrides:
readAttributesFromXmlin classComplexProperty- Parameters:
reader- the reader- Throws:
Exception- the exception
-
readTextValueFromXml
public void readTextValueFromXml(EwsServiceXmlReader reader) throws XMLStreamException, ServiceXmlDeserializationException
Reads text value from XML.- Overrides:
readTextValueFromXmlin classComplexProperty- Parameters:
reader- the reader- Throws:
XMLStreamException- the XML stream exceptionServiceXmlDeserializationException- the service xml deserialization exception
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes attribute to XML.- Overrides:
writeAttributesToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- the writer- Throws:
XMLStreamException- the XML stream exception
-
getCharacterSet
public String getCharacterSet()
Gets the character set of the content.- Returns:
- the character set
-
setCharacterSet
public void setCharacterSet(String characterSet)
Sets the character set.- Parameters:
characterSet- the new character set
-
getContent
public byte[] getContent()
Gets the character set of the content.- Returns:
- the content
-
setContent
public void setContent(byte[] content)
Sets the content.- Parameters:
content- the new content
-
-