microsoft.exchange.webservices.data.property.complex
Class MimeContent

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by 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
MimeContent()
          Initializes a new instance of the class.
MimeContent(String characterSet, byte[] content)
          Initializes a new instance of the class.
 
Method Summary
 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.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 set
content - the content
Method Detail

readAttributesFromXml

public void readAttributesFromXml(EwsServiceXmlReader reader)
                           throws Exception
Reads attribute from XML.

Overrides:
readAttributesFromXml in class ComplexProperty
Parameters:
reader - the reader
Throws:
Exception - the exception

readTextValueFromXml

public void readTextValueFromXml(EwsServiceXmlReader reader)
                          throws XMLStreamException,
                                 ServiceXmlDeserializationException
Reads text value from XML.

Overrides:
readTextValueFromXml in class ComplexProperty
Parameters:
reader - the reader
Throws:
XMLStreamException - the XML stream exception
ServiceXmlDeserializationException - the service xml deserialization exception

writeAttributesToXml

public void writeAttributesToXml(EwsServiceXmlWriter writer)
                          throws ServiceXmlSerializationException
Writes attribute to XML.

Overrides:
writeAttributesToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
ServiceXmlSerializationException - the service xml serialization exception

writeElementsToXml

public void writeElementsToXml(EwsServiceXmlWriter writer)
                        throws XMLStreamException
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
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

toString

public String toString()
Writes attribute to XML.

Overrides:
toString in class Object
Returns:
the string


Copyright © 2012–2015 Microsoft. All rights reserved.