microsoft.exchange.webservices.data
Class MimeContent

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.MimeContent

public final class MimeContent
extends ComplexProperty

Represents the MIME content of an item.


Constructor Summary
MimeContent()
          Initializes a new instance of the class.
MimeContent(java.lang.String characterSet, byte[] content)
          Initializes a new instance of the class.
 
Method Summary
 java.lang.String getCharacterSet()
          Gets the character set of the content.
 byte[] getContent()
          Gets the character set of the content.
protected  void readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Reads attributes from XML.
protected  void readTextValueFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Reads text value from XML.
 void setCharacterSet(java.lang.String characterSet)
          Sets the character set.
 void setContent(byte[] content)
          Sets the content.
 java.lang.String toString()
          Writes attributes to XML.
protected  void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Writes attributes to XML.
protected  void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.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(java.lang.String characterSet,
                   byte[] content)
Initializes a new instance of the class.

Parameters:
characterSet - the character set
content - the content
Method Detail

readAttributesFromXml

protected void readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                              throws java.lang.Exception
Reads attributes from XML.

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

readTextValueFromXml

protected void readTextValueFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                             throws javax.xml.stream.XMLStreamException,
                                    ServiceXmlDeserializationException
Reads text value from XML.

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

writeAttributesToXml

protected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                             throws ServiceXmlSerializationException
Writes attributes to XML.

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

writeElementsToXml

protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                           throws javax.xml.stream.XMLStreamException
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
javax.xml.stream.XMLStreamException - the xML stream exception

getCharacterSet

public java.lang.String getCharacterSet()
Gets the character set of the content.

Returns:
the character set

setCharacterSet

public void setCharacterSet(java.lang.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 java.lang.String toString()
Writes attributes to XML.

Overrides:
toString in class java.lang.Object
Returns:
the string