Joutsen Persistence v0.3.0+1-ga730d6d
Public Member Functions | List of all members
Joutsen.Persistence.Lobs.StreamBlob Class Reference

A Blob implementation that works with readable streams as their data. More...

Public Member Functions

 StreamBlob (Stream stream)
 Creates a new instance for a stream. More...
 
override ReadOnlyStream OpenReader ()
 Provides read access to the data of this Blob by providing a stream. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from Joutsen.Persistence.Lobs.Blob
abstract ReadOnlyStream OpenReader ()
 Provides read access to the data of this Blob by providing a stream. More...
 
virtual void WriteTo (Stream output)
 Writes the data of this Blob to a stream. More...
 

Detailed Description

A Blob implementation that works with readable streams as their data.

Since
0.3.0

Constructor & Destructor Documentation

◆ StreamBlob()

Joutsen.Persistence.Lobs.StreamBlob.StreamBlob ( Stream  stream)

Creates a new instance for a stream.

Parameters
streamthe stream containing the data.
Remarks
The new instance does not handle closing of the provided stream. Closing and disposing the stream needs to be handled outside of the StreamBlob instance.

Member Function Documentation

◆ Equals()

override bool Joutsen.Persistence.Lobs.StreamBlob.Equals ( object  obj)

◆ GetHashCode()

override int Joutsen.Persistence.Lobs.StreamBlob.GetHashCode ( )

◆ OpenReader()

override ReadOnlyStream Joutsen.Persistence.Lobs.StreamBlob.OpenReader ( )
virtual

Provides read access to the data of this Blob by providing a stream.

Returns
a stream that provides read access to the data
Remarks
The returned stream is not managed and needs to be disposed of outside of this method.

Implements Joutsen.Persistence.Lobs.Blob.