OutputStream Class
OutputStream class
A surrogate stream wraps the real output stream and controls access to it.OutputStream
contains URI data that describes location of the output stream.
public class OutputStream : Stream
Constructors
Name | Description |
---|
OutputStream(Stream, string) | Initializes a new instance of the OutputStream class. |
Properties
Name | Description |
---|
override CanRead { get; } | Gets a value indicating whether the wrapped output stream supports reading. |
override CanSeek { get; } | Gets a value indicating whether the wrapped output stream supports seeking. |
override CanWrite { get; } | Gets a value indicating whether the wrapped output stream supports writing. |
override Length { get; } | Gets the length in bytes of the wrapped output stream. |
override Position { get; set; } | Gets or sets the position within the wrapped output stream. |
Uri { get; } | Gets the URI of stream location. |
Methods
Name | Description |
---|
override Close() | Closes the wrapped output stream and current stream. |
override Flush() | Clears all buffers for the wrapped output stream and causes any buffered data to be written to the underlying device. |
override Read(byte[], int, int) | Reads a sequence of bytes from the wrapped output stream and advances the position within the stream by the number of bytes read. |
override Seek(long, SeekOrigin) | Sets the position within the wrapped output stream. |
override SetLength(long) | Sets the length of the wrapped output stream. |
override Write(byte[], int, int) | Writes a sequence of bytes to the wrapped output stream and advances the current position within this stream by the number of bytes written. |
See Also