C# Class FlickrNet.CacheItemPersister

An interface that knows how to read/write subclasses of ICacheItem. Obviously there will be a tight coupling between concrete implementations of ICacheItem and concrete implementations of ICacheItemPersister.
Exibir arquivo Open project: mono/flickr-sharp Class Usage Examples

Public Methods

Method Description
Read ( Stream inputStream ) : ICacheItem

Read a single cache item from the input stream.

Write ( Stream outputStream, ICacheItem cacheItem ) : void

Write a single cache item to the output stream.

Method Details

Read() public abstract method

Read a single cache item from the input stream.
public abstract Read ( Stream inputStream ) : ICacheItem
inputStream Stream
return ICacheItem

Write() public abstract method

Write a single cache item to the output stream.
public abstract Write ( Stream outputStream, ICacheItem cacheItem ) : void
outputStream Stream
cacheItem ICacheItem
return void