Xceed Real-Time Zip for .NET Documentation
Xceed.Compression.Formats Assembly / Xceed.Compression.Formats Namespace / ChecksumStream Class
Members


In This Topic
    ChecksumStream Class
    In This Topic
    Represents a pass-through stream that calculates a checksum on the data read or written to the inner stream.
    Syntax
    'Declaration
     
    Public Class ChecksumStream 
       Inherits System.IO.Stream
       Implements System.IDisposable 
    'Usage
     
    Dim instance As ChecksumStream
    public class ChecksumStream : System.IO.Stream, System.IDisposable  
    Remarks

    The ChecksumStream only supports CRC32 and Adler32 checksums.

    Closing the ChecksumStream will also close the inner stream.

    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.IO.Stream
             Xceed.Compression.Formats.ChecksumStream

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Initializes a new instance of the ChecksumStream class.  
    Top
    Public Properties
     NameDescription
    Public PropertyOverridden. Gets a boolean value indicating whether the current stream supports reading.  
    Public PropertyOverridden. Gets a boolean value indicating whether the current stream supports seeking.  
    Public Property (Inherited from System.IO.Stream)
    Public PropertyOverridden. Gets a boolean value indicating whether the current stream supports writing.  
    Public PropertyGets a value representing the current checksum.  
    Public PropertyGets or sets the expected checksum.  
    Public PropertyOverridden. Gets the length, in bytes, of the stream.  
    Public PropertyOverridden. Gets or sets the position within the current stream.  
    Public Property (Inherited from System.IO.Stream)
    Public Property (Inherited from System.IO.Stream)
    Top
    Public Methods
     NameDescription
    Public Method (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public Methodstatic (Shared in Visual Basic)Overloaded. Calculates an Adler32 checksum.  
    Public Methodstatic (Shared in Visual Basic)  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Calculates a CRC32 checksum.  
    Public Method (Inherited from System.IO.Stream)
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverloaded. Overridden. Releases all resources used by the ChecksumStream.  
    Public Method (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public MethodOverridden. Clears all buffers for this stream and causes any buffered data to be written to the underlying stream.  
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverridden. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.  
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public MethodOverridden. Sets the position within the current stream.  
    Public MethodOverridden. Sets the length of the current stream.  
    Public MethodOverridden. Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.  
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from System.IO.Stream)
    Protected MethodAllows the ChecksumStream object to attempt to free resources and perform other cleanup operations before it is reclaimed by garbage collection.  
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Protected Method (Inherited from System.IO.Stream)
    Top
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also