IStreamWrapper

IStreamWrapper interface

Aspose.IO.Stream wrapper for COM interface.

public interface IStreamWrapper : IDisposable

Properties

NameDescription
AsIDisposable { get; }Allows to get base IDisposable interface. Read-only IDisposable.
CanRead { get; }Gets a value indicating whether the current stream supports reading. Read-only Boolean.
CanSeek { get; }Gets a value indicating whether the current stream supports seeking. Read-only Boolean.
CanWrite { get; }Gets a value indicating whether the current stream supports writing. Read-only Boolean.
Length { get; }Gets the length in bytes of the stream. Read-only Int64.
Position { get; }Gets the position within the current stream. Read-only Int64.
Stream { get; }Gets a stream. Read-only Stream.

Methods

NameDescription
Close()Closes the current stream and releases any resources.
Flush()Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
Read(byte[], int, int)Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
ReadByte()Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
Seek(long, SeekOrigin)Sets the position within the current stream
Write(byte[], int, int)writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
WriteByte(byte)Writes a byte to the current position in the stream and advances the position within the stream by one byte.

See Also