Package com._1c.g5.v8.bm.store
Interface IBmSerializer<T>
-
- Type Parameters:
T- the type of objects supported by this serializer.
public interface IBmSerializer<T>Serializer/deserializer interface used by BM components.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tdeserialize(InputStream in)Deserializes an object.voidserialize(T object, OutputStream out)Serializes an object.
-
-
-
Method Detail
-
serialize
void serialize(T object, OutputStream out) throws IOException
Serializes an object.- Parameters:
object- The object to serialize. May not benull.out- The output stream to write the serialized representation to. May not benull.- Throws:
IOException- if any I/O error occurs.
-
deserialize
T deserialize(InputStream in) throws IOException
Deserializes an object.- Parameters:
in- The input stream to read the serialized representation from. May not benull.- Returns:
- the deserialized object. Never
null. - Throws:
IOException- if any I/O error occurs.
-
-