Mono Class Library: Overview

System.IO.Stream: Members

The members of System.IO.Stream are listed below.

See Also: Inherited members from System.MarshalByRefObject

Protected Constructors

Constructs a new instance of the System.IO.Stream class.

Public Fields

static readonly
NullStream. Returns a System.IO.Stream with no backing store.

Public Properties

[read-only]
abstract
CanReadbool. Gets a bool value indicating whether the current stream supports reading.
[read-only]
abstract
CanSeekbool. Gets a bool value indicating whether the current stream supports seeking.
[read-only]
CanTimeoutbool. Documentation for this section has not yet been entered.
[read-only]
abstract
CanWritebool. Gets a bool value indicating whether the current stream supports writing.
[read-only]
abstract
Lengthlong. Gets the length in bytes of the stream.
abstract
Positionlong. Gets or sets the position within the current stream.
ReadTimeoutint. Documentation for this section has not yet been entered.
WriteTimeoutint. Documentation for this section has not yet been entered.

Public Methods

BeginRead(byte[], int, int, AsyncCallback, object) : IAsyncResult
Begins an asynchronous read operation.
BeginWrite(byte[], int, int, AsyncCallback, object) : IAsyncResult
Begins an asynchronous write operation.
Close()
Closes the current stream and releases any resources associated with the current stream.
Dispose()
Documentation for this section has not yet been entered.
EndRead(IAsyncResult) : int
Ends a pending asynchronous read request.
EndWrite(IAsyncResult)
Ends an asynchronous write operation.
abstract
Flush()
Flushes the internal buffer.
abstract
Read(byte[], int, 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() : int
Reads a byte from the stream and advances the position within the stream by one byte.
abstract
Seek(long, SeekOrigin) : long
Changes the position within the current stream by the given offset, which is relative to the stated origin.
abstract
SetLength(long)
Sets the length of the current stream.
static
Synchronized(Stream) : Stream
Documentation for this section has not yet been entered.
abstract
Write(byte[], int, int)
Writes a sequence of bytes to the current stream and advances the current position within the current 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.

Protected Methods

CreateWaitHandle() : System.Threading.WaitHandle
Allocates a System.Threading.WaitHandle object.
Dispose(bool)
Documentation for this section has not yet been entered.

Explicitly Implemented Interface Members

IDisposable.DisposeImplemented to support the IDisposable interface. [Note: For more information, see IDisposable.Dispose.]