DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Serialization.ObjectBinarySerializer< T > Class Template Referenceabstract
Inheritance diagram for Deveel.Data.Serialization.ObjectBinarySerializer< T >:
Deveel.Data.Serialization.IObjectBinarySerializer Deveel.Data.Serialization.IObjectSerializer

Public Member Functions

abstract void Serialize (T obj, BinaryWriter writer)
 
abstract T Deserialize (BinaryReader reader)
 

Protected Member Functions

 ObjectBinarySerializer ()
 
 ObjectBinarySerializer (Encoding encoding)
 

Properties

virtual Encoding Encoding [get, private set]
 

Private Member Functions

void IObjectSerializer. Serialize (object obj, Stream outputStream)
 
object IObjectSerializer. Deserialize (Stream inputStream)
 
void IObjectBinarySerializer. Serialize (object obj, BinaryWriter writer)
 
object IObjectBinarySerializer. Deserialize (BinaryReader reader)
 

Detailed Description

Definition at line 22 of file ObjectBinarySerializer.cs.

Constructor & Destructor Documentation

Definition at line 23 of file ObjectBinarySerializer.cs.

24  : this(Encoding.Unicode) {
25  }

Definition at line 27 of file ObjectBinarySerializer.cs.

27  {
28  if (encoding == null)
29  throw new ArgumentNullException("encoding");
30 
31  Encoding = encoding;
32  }

Member Function Documentation

object IObjectSerializer. Deveel.Data.Serialization.ObjectBinarySerializer< T >.Deserialize ( Stream  inputStream)
inlineprivate

Implements Deveel.Data.Serialization.IObjectSerializer.

Definition at line 42 of file ObjectBinarySerializer.cs.

42  {
43  using (var reader = new BinaryReader(inputStream)) {
44  return Deserialize(reader);
45  }
46  }
object IObjectSerializer. Deserialize(Stream inputStream)
object IObjectBinarySerializer. Deveel.Data.Serialization.ObjectBinarySerializer< T >.Deserialize ( BinaryReader  reader)
inlineprivate

Implements Deveel.Data.Serialization.IObjectBinarySerializer.

Definition at line 52 of file ObjectBinarySerializer.cs.

52  {
53  return Deserialize(reader);
54  }
object IObjectSerializer. Deserialize(Stream inputStream)
abstract T Deveel.Data.Serialization.ObjectBinarySerializer< T >.Deserialize ( BinaryReader  reader)
pure virtual
void IObjectSerializer. Deveel.Data.Serialization.ObjectBinarySerializer< T >.Serialize ( object  obj,
Stream  outputStream 
)
inlineprivate

Implements Deveel.Data.Serialization.IObjectSerializer.

Definition at line 36 of file ObjectBinarySerializer.cs.

36  {
37  using (var writer = new BinaryWriter(outputStream)) {
38  Serialize((T)obj, writer);
39  }
40  }
void IObjectSerializer. Serialize(object obj, Stream outputStream)
void IObjectBinarySerializer. Deveel.Data.Serialization.ObjectBinarySerializer< T >.Serialize ( object  obj,
BinaryWriter  writer 
)
inlineprivate

Implements Deveel.Data.Serialization.IObjectBinarySerializer.

Definition at line 48 of file ObjectBinarySerializer.cs.

48  {
49  Serialize((T)obj, writer);
50  }
void IObjectSerializer. Serialize(object obj, Stream outputStream)
abstract void Deveel.Data.Serialization.ObjectBinarySerializer< T >.Serialize ( obj,
BinaryWriter  writer 
)
pure virtual

Property Documentation

virtual Encoding Deveel.Data.Serialization.ObjectBinarySerializer< T >.Encoding
getprivate setprotected

Definition at line 34 of file ObjectBinarySerializer.cs.


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