public class EwsServiceXmlReader extends EwsXmlReader
Constructor and Description |
---|
EwsServiceXmlReader(InputStream stream,
ExchangeService service)
Initializes a new instance of the EwsXmlReader class.
|
Modifier and Type | Method and Description |
---|---|
ExchangeService |
getService()
Gets the service.
|
Date |
readElementValueAsDateTime()
Reads the element value as date time.
|
Date |
readElementValueAsDateTime(XmlNamespace xmlNamespace,
String localName)
Reads the element value as date time.
|
Date |
readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone()
Reads the element value as date time, assuming it is unbiased (e.g.
2009/01/01T08:00) and scoped to service's time zone.
|
Date |
readElementValueAsUnspecifiedDate()
Reads the element value as unspecified date.
|
<TServiceObject extends ServiceObject> |
readServiceObjectsCollectionFromXml(String collectionXmlElementName,
IGetObjectInstanceDelegate<ServiceObject> getObjectInstanceDelegate,
boolean clearPropertyBag,
PropertySet requestedPropertySet,
boolean summaryPropertiesOnly)
Reads the service objects collection from XML.
|
void |
setService(ExchangeService service)
Sets the service.
|
checkEndElement, ensureCurrentNodeIsEndElement, ensureCurrentNodeIsStartElement, ensureCurrentNodeIsStartElement, getLocalName, getName, getNamespacePrefix, getNamespaceUri, getNodeType, getXmlReaderForNode, hasAttributes, initializeXmlReader, isEmptyElement, isEndElement, isEndElement, isStartElement, isStartElement, isStartElement, read, read, readAttributeValue, readAttributeValue, readAttributeValue, readBase64ElementValue, readBase64ElementValue, readElementValue, readElementValue, readElementValue, readElementValue, readElementValue, readEndElement, readEndElement, readEndElementIfNecessary, readInnerXml, readNullableAttributeValue, readOuterXml, readStartElement, readStartElement, readSubtree, readToDescendant, readToDescendant, readValue, readValue, readValue, skipCurrentElement, skipElement, skipElement, tryReadValue
public EwsServiceXmlReader(InputStream stream, ExchangeService service) throws Exception
stream
- the streamservice
- the serviceException
- on errorpublic Date readElementValueAsDateTime() throws Exception
Exception
- the exceptionpublic Date readElementValueAsUnspecifiedDate() throws Exception
Exception
- on errorpublic Date readElementValueAsUnbiasedDateTimeScopedToServiceTimeZone() throws Exception
Exception
- the exceptionpublic Date readElementValueAsDateTime(XmlNamespace xmlNamespace, String localName) throws Exception
xmlNamespace
- the xml namespacelocalName
- the local nameException
- the exceptionpublic <TServiceObject extends ServiceObject> List<TServiceObject> readServiceObjectsCollectionFromXml(String collectionXmlElementName, IGetObjectInstanceDelegate<ServiceObject> getObjectInstanceDelegate, boolean clearPropertyBag, PropertySet requestedPropertySet, boolean summaryPropertiesOnly) throws Exception
TServiceObject
- the generic typecollectionXmlElementName
- the collection xml element namegetObjectInstanceDelegate
- the get object instance delegateclearPropertyBag
- the clear property bagrequestedPropertySet
- the requested property setsummaryPropertiesOnly
- the summary property onlyException
- the exceptionpublic ExchangeService getService()
public void setService(ExchangeService service)
service
- the new serviceCopyright © 2012–2015 Microsoft. All rights reserved.