menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ZippedContentStream - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ZippedContentStream

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.IO.Stream
    ZippedContentStream
    Implements
    System.IDisposable
    Inherited Members
    System.IO.Stream.BeginRead(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
    System.IO.Stream.BeginWrite(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
    System.IO.Stream.CanTimeout
    System.IO.Stream.Close()
    System.IO.Stream.CopyTo(System.IO.Stream)
    System.IO.Stream.CopyTo(System.IO.Stream, System.Int32)
    System.IO.Stream.CopyToAsync(System.IO.Stream)
    System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32)
    System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32, System.Threading.CancellationToken)
    System.IO.Stream.CreateWaitHandle()
    System.IO.Stream.Dispose()
    System.IO.Stream.Dispose(System.Boolean)
    System.IO.Stream.EndRead(System.IAsyncResult)
    System.IO.Stream.EndWrite(System.IAsyncResult)
    System.IO.Stream.FlushAsync()
    System.IO.Stream.FlushAsync(System.Threading.CancellationToken)
    System.IO.Stream.Null
    System.IO.Stream.ObjectInvariant()
    System.IO.Stream.ReadAsync(System.Byte[], System.Int32, System.Int32)
    System.IO.Stream.ReadAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
    System.IO.Stream.ReadByte()
    System.IO.Stream.ReadTimeout
    System.IO.Stream.Synchronized(System.IO.Stream)
    System.IO.Stream.WriteAsync(System.Byte[], System.Int32, System.Int32)
    System.IO.Stream.WriteAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
    System.IO.Stream.WriteByte(System.Byte)
    System.IO.Stream.WriteTimeout
    System.MarshalByRefObject.CreateObjRef(System.Type)
    System.MarshalByRefObject.GetLifetimeService()
    System.MarshalByRefObject.InitializeLifetimeService()
    System.MarshalByRefObject.MemberwiseClone(System.Boolean)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Compression.Zip
    Assembly: Syncfusion.Compression.Base.dll
    Syntax
    public class ZippedContentStream : Stream, IDisposable

    Constructors

    ZippedContentStream(ZipArchive.CompressorCreator)

    Initializes new instance of the stream.

    Declaration
    public ZippedContentStream(ZipArchive.CompressorCreator createCompressor)
    Parameters
    Type Name Description
    ZipArchive.CompressorCreator createCompressor

    Properties

    CanRead

    Gets a value indicating whether the current stream supports reading. Read-only.

    Declaration
    public override bool CanRead { get; }
    Property Value
    Type
    System.Boolean
    Overrides
    System.IO.Stream.CanRead

    CanSeek

    Gets a value indicating whether the current stream supports seeking. Read-only.

    Declaration
    public override bool CanSeek { get; }
    Property Value
    Type
    System.Boolean
    Overrides
    System.IO.Stream.CanSeek

    CanWrite

    Gets a value indicating whether the current stream supports writing. Read-only.

    Declaration
    public override bool CanWrite { get; }
    Property Value
    Type
    System.Boolean
    Overrides
    System.IO.Stream.CanWrite

    Crc32

    Returns computed crc32 value. Read-only.

    Declaration
    [CLSCompliant(false)]
    public uint Crc32 { get; }
    Property Value
    Type
    System.UInt32

    Length

    Gets the length in bytes of the stream. Read-only.

    Declaration
    public override long Length { get; }
    Property Value
    Type
    System.Int64
    Overrides
    System.IO.Stream.Length

    Position

    Gets or sets the position within the current stream. Read-only.

    Declaration
    public override long Position { get; set; }
    Property Value
    Type
    System.Int64
    Overrides
    System.IO.Stream.Position

    UnzippedSize

    Returns size of the unzipped data. Read-only.

    Declaration
    public long UnzippedSize { get; }
    Property Value
    Type
    System.Int64

    ZippedContent

    This property returns stream with zipped content. It closes internal deflate stream, so you won't be able to write anything in int. Read-only.

    Declaration
    public Stream ZippedContent { get; }
    Property Value
    Type
    System.IO.Stream

    Methods

    Flush()

    Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

    Declaration
    public override void Flush()
    Overrides
    System.IO.Stream.Flush()

    Read(Byte[], Int32, Int32)

    Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

    Declaration
    public override int Read(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    System.Byte[] buffer

    An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.

    System.Int32 offset

    The zero-based byte offset in buffer at which to begin storing the data read from the current stream.

    System.Int32 count

    The maximum number of bytes to be read from the current stream.

    Returns
    Type Description
    System.Int32

    The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.

    Overrides
    System.IO.Stream.Read(System.Byte[], System.Int32, System.Int32)

    Seek(Int64, SeekOrigin)

    Sets the position within the current stream.

    Declaration
    public override long Seek(long offset, SeekOrigin origin)
    Parameters
    Type Name Description
    System.Int64 offset

    A byte offset relative to the origin parameter.

    System.IO.SeekOrigin origin

    A value of type SeekOrigin indicating the reference point used to obtain the new position.

    Returns
    Type Description
    System.Int64

    The new position within the current stream.

    Overrides
    System.IO.Stream.Seek(System.Int64, System.IO.SeekOrigin)

    SetLength(Int64)

    Sets the length of the current stream.

    Declaration
    public override void SetLength(long value)
    Parameters
    Type Name Description
    System.Int64 value

    The desired length of the current stream in bytes.

    Overrides
    System.IO.Stream.SetLength(System.Int64)

    Write(Byte[], Int32, Int32)

    Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

    Declaration
    public override void Write(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    System.Byte[] buffer

    An array of bytes. This method copies count bytes from buffer to the current stream.

    System.Int32 offset

    The zero-based byte offset in buffer at which to begin copying bytes to the current stream.

    System.Int32 count

    The number of bytes to be written to the current stream.

    Overrides
    System.IO.Stream.Write(System.Byte[], System.Int32, System.Int32)

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved