When writing new Streams, I'm tired of having to forward most of the methods to the underlying Stream. So this is the default behavior in this class, and subclasses are free to override any methods they see fit.


The following tables list the members exposed by AdapterStream.

Public Constructors

  Name Description
Public method AdapterStream  
Top

Protected Fields

  Name Description
Family field _s  
Top

Public Properties

  Name Description
Public property CanRead Overridden.  
Public property CanSeek Overridden.  
Public property CanTimeout Gets a value that determines whether the current stream can time out. (inherited from Stream)
Public property CanWrite Overridden.  
Public property Length Overridden.  
Public property Position Overridden.  
Public property ReadTimeout Gets or sets a value that determines how long the stream will attempt to read before timing out. (inherited from Stream)
Public property TargetStream  
Public property WriteTimeout Gets or sets a value that determines how long the stream will attempt to write before timing out. (inherited from Stream)
Top

Public Methods

  Name Description
Public method BeginRead Overridden.  
Public method BeginWrite Overridden.  
Public method Close Overridden.  
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject)
Public method Dispose Overloaded. Releases all resources used by the Stream object. (inherited from Stream)
Public method EndRead Overridden.  
Public method EndWrite Overridden.  
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method Flush Overridden.  
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Read Overridden.  
Public method ReadByte Overridden.  
Public method Seek Overridden.  
Public method SetLength Overridden.  
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Public method Write Overridden.  
Public method WriteByte Overridden.  
Top

Protected Methods

  Name Description
Family method CreateWaitHandle Allocates a WaitHandle object. (inherited from Stream)
Family method Dispose Overloaded. Releases all resources used by the Stream object. (inherited from Stream)
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Overloaded. Creates a shallow copy of the current Object. (inherited from MarshalByRefObject)
Top

See Also