JGR MSTS Editors and Tools
UnclosableStream Class
NamespacesJgr.IOUnclosableStream

[This is preliminary documentation and is subject to change.]

A Stream which ignores calls to Close()()()() for stuations where a consumer of a stream assumes control which is undesired.
Declaration Syntax
C#Visual BasicVisual C++
public class UnclosableStream : Stream
Public Class UnclosableStream _
	Inherits Stream
public ref class UnclosableStream : public Stream
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
UnclosableStream(Stream)
Initializes a new instance of the UnclosableStream class with a given underlying Stream.

__identity()()()() (Inherited from MarshalByRefObject.)
__RaceSetServerIdentity(ServerIdentity) (Inherited from MarshalByRefObject.)
__ResetServerIdentity()()()() (Inherited from MarshalByRefObject.)
_asyncActiveCount()()()() (Inherited from Stream.)
_asyncActiveEvent()()()() (Inherited from Stream.)
_CloseAsyncActiveEvent(Int32) (Inherited from Stream.)
_readDelegate()()()() (Inherited from Stream.)
_writeDelegate()()()() (Inherited from Stream.)
BaseStream
BeginRead(array<Byte>[]()[][], Int32, Int32, AsyncCallback, Object) HostProtectionAttribute. (Inherited from Stream.)
BeginWrite(array<Byte>[]()[][], Int32, Int32, AsyncCallback, Object) HostProtectionAttribute. (Inherited from Stream.)
CanCastToXmlType(String, String) (Inherited from MarshalByRefObject.)
CanRead (Overrides Stream.CanRead.)
CanSeek (Overrides Stream.CanSeek.)
CanTimeout (Inherited from Stream.)
CanWrite (Overrides Stream.CanWrite.)
Close()()()() (Overrides Stream.Close()()()().)
CreateObjRef(Type) (Inherited from MarshalByRefObject.)
CreateWaitHandle()()()() Obsolete. (Inherited from Stream.)
Dispose()()()() (Inherited from Stream.)
Dispose(Boolean) (Inherited from Stream.)
EndRead(IAsyncResult) (Inherited from Stream.)
EndWrite(IAsyncResult) (Inherited from Stream.)
Equals(Object) (Inherited from Object.)
FieldGetter(String, String, Object%) (Inherited from Object.)
FieldSetter(String, String, Object) (Inherited from Object.)
Finalize()()()() (Inherited from Object.)
Flush()()()() (Overrides Stream.Flush()()()().)
GetComIUnknown(Boolean) (Inherited from MarshalByRefObject.)
GetFieldInfo(String, String) (Inherited from Object.)
GetHashCode()()()() (Inherited from Object.)
GetLifetimeService()()()() (Inherited from MarshalByRefObject.)
GetType()()()() (Inherited from Object.)
Identity()()()() (Inherited from MarshalByRefObject.)
InitializeLifetimeService()()()() (Inherited from MarshalByRefObject.)
InvokeMember(String, BindingFlags, Binder, array<Object>[]()[][], array<ParameterModifier>[]()[][], CultureInfo, array<String>[]()[][]) (Inherited from MarshalByRefObject.)
IsInstanceOfType(Type) (Inherited from MarshalByRefObject.)
Length (Overrides Stream.Length.)
MemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
MemberwiseClone()()()() (Inherited from Object.)
Position (Overrides Stream.Position.)
Read(array<Byte>[]()[][], Int32, Int32) (Overrides Stream.Read(array<Byte>[]()[][], Int32, Int32).)
ReadByte()()()() (Inherited from Stream.)
ReadTimeout (Inherited from Stream.)
Seek(Int64, SeekOrigin) (Overrides Stream.Seek(Int64, SeekOrigin).)
SetLength(Int64) (Overrides Stream.SetLength(Int64).)
ToString()()()() (Inherited from Object.)
Write(array<Byte>[]()[][], Int32, Int32) (Overrides Stream.Write(array<Byte>[]()[][], Int32, Int32).)
WriteByte(Byte) (Inherited from Stream.)
WriteTimeout (Inherited from Stream.)
Remarks

All methods and properties pass straight through to the underlying Stream, with just one exception: Close()()()(). This method will do absolutely nothing. UnclosableStream should be used when a target accepting a Stream will close it but this isn't desired; a common example is a Reader, e.g. BinaryReader, which often close the underlying Stream when they are closed.

Inheritance Hierarchy
Object
MarshalByRefObject
 Stream
  UnclosableStream

Assembly: JGR.IO (Module: JGR.IO) Version: 0.5.4008.31681