Changes between Version 4 and Version 5 of ICryptoolStreamUsage


Ignore:
Timestamp:
Feb 13, 2010, 2:57:01 AM (12 years ago)
Author:
Matthäus Wander
Comment:

design change -- doc update

Legend:

Unmodified
Added
Removed
Modified
  • ICryptoolStreamUsage

    v4 v5  
    1818[[Image(source:/trunk/Documentation/Developer/CStream/CStreamWriter.png)]]
    1919
    20  * Create an output property (e.g. called "OutputStream") with type CStream
     20 * Create an output property (e.g. called "OutputStream") with type ICryptoolStream
    2121 * In Execute() create a new CStreamWriter
    22  * Get the CStreamWriter.CStream property and set it as your OutputStream property
     22 * Set the CStreamWriter as OutputStream property (will be implicitly downcasted)
    2323 * Announce the OutputStream update with OnPropertyChanged("OutputStream")
    2424 * Pass data to the stream via CStreamWriter.Write()
    2525 * Call CStreamWriter.Close() when finished
    26  * Best practice is to not care about disposal of a writer.
     26 * Best practice is to not care about disposal of writer
    2727
    2828{{{
    2929public class PluginA
    3030{
    31         public CStream OutputStream
     31        public ICryptoolStream OutputStream
    3232        {
    3333                get;
     
    3838        {
    3939                CStreamWriter writer = new CStreamWriter();
    40                 OutputStream = writer.CStream;
     40                OutputStream = writer;
    4141                OnPropertyChanged("OutputStream");
    4242               
     
    5656[[Image(source:/trunk/Documentation/Developer/CStream/CStreamReader.png)]]
    5757
    58  * Create an input property (e.g. called "InputStream") with type CStream
    59  * In Execute() call CreateReader() on that CStream to get a new CStreamReader
     58 * Create an input property (e.g. called "InputStream") with type ICryptoolStream
     59 * In Execute() call CreateReader() on that ICryptoolStream to get a new CStreamReader
    6060 * Retrieve data with CStreamReader.Read() ''in a loop''
    6161 * End loop when read attempt returns 0 bytes
     
    6565public class PluginB
    6666{
    67         public CStream InputStream
     67        public ICryptoolStream InputStream
    6868        {
    6969                get;