Oracle® Fusion Middleware .NET API Reference for Identity Connector Framework  E57662-01
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | List of all members
Org.IdentityConnectors.Framework.Common.Serializer.ObjectSerializerFactory Class Referenceabstract

Serializer factory for serializing connector objects. More...

Public Member Functions

abstract BinaryObjectSerializer NewBinarySerializer (Stream os)
 Creates a More...
 
abstract BinaryObjectDeserializer NewBinaryDeserializer (Stream i)
 Creates a More...
 
abstract XmlObjectSerializer NewXmlSerializer (TextWriter w, bool includeHeader, bool multiObject)
 Creates a More...
 
abstract void DeserializeXmlStream (TextReader reader, XmlObjectResultsHandler handler, bool validate)
 Deserializes XML objects from a stream NOTE: Consider using SerializerUtil.DeserializeXmlObject(String,bool) for convenience deserializing a single object. More...
 

Static Public Member Functions

static ObjectSerializerFactory GetInstance ()
 Get the singleton instance of the Org.IdentityConnectors.Framework.Common.Serializer.ObjectSerializerFactory. More...
 

Detailed Description

Serializer factory for serializing connector objects.

The list of supported types are as follows: TODO: list supported types

See also
SerializerUtil

Member Function Documentation

abstract void Org.IdentityConnectors.Framework.Common.Serializer.ObjectSerializerFactory.DeserializeXmlStream ( TextReader  reader,
XmlObjectResultsHandler  handler,
bool  validate 
)
pure virtual

Deserializes XML objects from a stream NOTE: Consider using SerializerUtil.DeserializeXmlObject(String,bool) for convenience deserializing a single object.

NOTE2: Do not mix and match SerializerUtil.DeserializeXmlObject(String,bool) with {NewXmlSerializer(TextWriter, bool, bool).

Parameters
isThe input source
handlerThe callback to receive objects from the stream
validateTrue iff we are to validate
static ObjectSerializerFactory Org.IdentityConnectors.Framework.Common.Serializer.ObjectSerializerFactory.GetInstance ( )
static
abstract BinaryObjectDeserializer Org.IdentityConnectors.Framework.Common.Serializer.ObjectSerializerFactory.NewBinaryDeserializer ( Stream  i)
pure virtual

Creates a

BinaryObjectDeserializer for reading objects from the given stream.

NOTE: consider using SerializerUtil.DeserializeBinaryObject(byte[]) for convenience deserializing a single object. NOTE2: do not mix and match SerializerUtil.DeserializeBinaryObject(byte[]) with {NewBinarySerializer(Stream). This is unsafe since there is header information and state associated with the stream. Objects written using one method must be read using the proper corresponding method.

Parameters
osThe stream
Returns
The deserializer
abstract BinaryObjectSerializer Org.IdentityConnectors.Framework.Common.Serializer.ObjectSerializerFactory.NewBinarySerializer ( Stream  os)
pure virtual

Creates a

BinaryObjectSerializer for writing objects to the given stream.

NOTE: consider using SerializerUtil.SerializeBinaryObject(Object) for convenience serializing a single object.

NOTE2: do not mix and match SerializerUtil.SerializeBinaryObject(Object) with {NewBinaryDeserializer(Stream). This is unsafe since there is header information and state associated with the stream. Objects written using one method must be read using the proper corresponding method.

Parameters
osThe stream
Returns
The serializer
abstract XmlObjectSerializer Org.IdentityConnectors.Framework.Common.Serializer.ObjectSerializerFactory.NewXmlSerializer ( TextWriter  w,
bool  includeHeader,
bool  multiObject 
)
pure virtual

Creates a

BinaryObjectSerializer for writing objects to the given stream.

NOTE: consider using SerializerUtil.SerializeXmlObject(Object,bool) for convenience serializing a single object.

NOTE2: do not mix and match SerializerUtil.SerializeXmlObject(Object,bool) with {DeserializeXmlStream(TextReader, XmlObjectResultsHandler, bool).

Parameters
wThe writer
includeHeaderTrue to include the xml header
multiObjectIs this to produce a multi-object document. If false, only a single object may be written.
Returns
The serializer

The documentation for this class was generated from the following file: