Class ObjectSerializerFactoryImpl
java.lang.Object
org.identityconnectors.framework.common.serializer.ObjectSerializerFactory
org.identityconnectors.framework.impl.serializer.ObjectSerializerFactoryImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserializeXmlStream(InputSource is, XmlObjectResultsHandler handler, boolean validate) Deserializes XML objects from a stream NOTE: Consider usingSerializerUtil.deserializeXmlObject(String,boolean)for convenience deserializing a single object.Creates aBinaryObjectDeserializerfor reading objects from the given stream.Creates aBinaryObjectSerializerfor writing objects to the given stream.newXmlSerializer(Writer w, boolean includeHeader, boolean multiObject) Creates aBinaryObjectSerializerfor writing objects to the given stream.Methods inherited from class org.identityconnectors.framework.common.serializer.ObjectSerializerFactory
getInstance
-
Constructor Details
-
ObjectSerializerFactoryImpl
public ObjectSerializerFactoryImpl()
-
-
Method Details
-
newBinaryDeserializer
Description copied from class:ObjectSerializerFactoryCreates aBinaryObjectDeserializerfor reading objects from the given stream. NOTE: Consider usingSerializerUtil.deserializeBinaryObject(byte[])for convenience deserializing a single object. NOTE2: Do not mix and matchSerializerUtil.deserializeBinaryObject(byte[])with {ObjectSerializerFactory.newBinarySerializer(OutputStream). 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.- Specified by:
newBinaryDeserializerin classObjectSerializerFactory- Parameters:
is- The stream- Returns:
- The deserializer
-
newBinarySerializer
Description copied from class:ObjectSerializerFactoryCreates aBinaryObjectSerializerfor writing objects to the given stream. NOTE: consider usingSerializerUtil.serializeBinaryObject(Object)for convenience serializing a single object. NOTE2: do not mix and matchSerializerUtil.serializeBinaryObject(Object)with {ObjectSerializerFactory.newBinaryDeserializer(InputStream). 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.- Specified by:
newBinarySerializerin classObjectSerializerFactory- Parameters:
os- The stream- Returns:
- The serializer
-
newXmlSerializer
Description copied from class:ObjectSerializerFactoryCreates aBinaryObjectSerializerfor writing objects to the given stream. NOTE: consider usingSerializerUtil.serializeXmlObject(Object,boolean)for convenience serializing a single object. NOTE2: do not mix and matchSerializerUtil.serializeXmlObject(Object,boolean)with {ObjectSerializerFactory.deserializeXmlStream(InputSource, XmlObjectResultsHandler, boolean).- Specified by:
newXmlSerializerin classObjectSerializerFactory- Parameters:
w- The writerincludeHeader- True to include the xml headermultiObject- Is this to produce a multi-object document. If false, only a single object may be written.- Returns:
- The serializer
-
deserializeXmlStream
Description copied from class:ObjectSerializerFactoryDeserializes XML objects from a stream NOTE: Consider usingSerializerUtil.deserializeXmlObject(String,boolean)for convenience deserializing a single object. NOTE2: Do not mix and matchSerializerUtil.deserializeXmlObject(String,boolean)with {ObjectSerializerFactory.newXmlSerializer(Writer, boolean, boolean).- Specified by:
deserializeXmlStreamin classObjectSerializerFactory- Parameters:
is- The input sourcehandler- The callback to receive objects from the streamvalidate- True if we are to validate
-