public class ObjectSerializerFactoryImpl extends ObjectSerializerFactory
| Constructor and Description |
|---|
ObjectSerializerFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeXmlStream(InputSource is,
XmlObjectResultsHandler handler,
boolean validate)
Deserializes XML objects from a stream
NOTE: Consider using
SerializerUtil.deserializeXmlObject(String,boolean)
for convenience deserializing a single object. |
BinaryObjectDeserializer |
newBinaryDeserializer(InputStream is)
Creates a
BinaryObjectDeserializer for reading objects from
the given stream. |
BinaryObjectSerializer |
newBinarySerializer(OutputStream os)
Creates a
BinaryObjectSerializer for writing objects to
the given stream. |
XmlObjectSerializer |
newXmlSerializer(Writer w,
boolean includeHeader,
boolean multiObject)
Creates a
BinaryObjectSerializer for writing objects to
the given stream. |
getInstancepublic BinaryObjectDeserializer newBinaryDeserializer(InputStream is)
ObjectSerializerFactoryBinaryObjectDeserializer 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 {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.newBinaryDeserializer in class ObjectSerializerFactoryis - The streampublic BinaryObjectSerializer newBinarySerializer(OutputStream os)
ObjectSerializerFactoryBinaryObjectSerializer 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 {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.newBinarySerializer in class ObjectSerializerFactoryos - The streampublic XmlObjectSerializer newXmlSerializer(Writer w, boolean includeHeader, boolean multiObject)
ObjectSerializerFactoryBinaryObjectSerializer for writing objects to
the given stream.
NOTE: consider using SerializerUtil.serializeXmlObject(Object,boolean)
for convenience serializing a single object.
NOTE2: do not mix and match SerializerUtil.serializeXmlObject(Object,boolean)
with {ObjectSerializerFactory.deserializeXmlStream(InputSource, XmlObjectResultsHandler, boolean).newXmlSerializer in class ObjectSerializerFactoryw - 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.public void deserializeXmlStream(InputSource is, XmlObjectResultsHandler handler, boolean validate)
ObjectSerializerFactorySerializerUtil.deserializeXmlObject(String,boolean)
for convenience deserializing a single object.
NOTE2: Do not mix and match SerializerUtil.deserializeXmlObject(String,boolean)
with {ObjectSerializerFactory.newXmlSerializer(Writer, boolean, boolean).deserializeXmlStream in class ObjectSerializerFactoryis - The input sourcehandler - The callback to receive objects from the streamvalidate - True if we are to validateCopyright © 2022. All rights reserved.