Class Streamer
Represents a base for stream readers and writers. Streamer object instances ARE NOT THREAD-safe
Inherited Members
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: Azos.IO
Assembly: Azos.dll
Syntax
public abstract class Streamer
Constructors
Streamer(Encoding)
Declaration
protected Streamer(Encoding encoding = null)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Encoding | encoding |
Fields
m_Buff32
Declaration
protected byte[] m_Buff32
Field Value
Type | Description |
---|---|
System.Byte[] |
m_Encoding
Declaration
protected Encoding m_Encoding
Field Value
Type | Description |
---|---|
System.Text.Encoding |
m_Stream
Declaration
protected Stream m_Stream
Field Value
Type | Description |
---|---|
System.IO.Stream |
UTF8Encoding
Declaration
public static readonly UTF8Encoding UTF8Encoding
Field Value
Type | Description |
---|---|
System.Text.UTF8Encoding |
Properties
Encoding
Returns stream string encoding
Declaration
public Encoding Encoding { get; }
Property Value
Type | Description |
---|---|
System.Text.Encoding |
Format
Returns format that this streamer implements
Declaration
public abstract StreamerFormat Format { get; }
Property Value
Type | Description |
---|---|
StreamerFormat |
Stream
Returns underlying stream if it is bound or null
Declaration
public Stream Stream { get; }
Property Value
Type | Description |
---|---|
System.IO.Stream |
Methods
BindStream(Stream)
Sets the stream as the target for output/input. This call must be coupled with UnbindStream()
Declaration
public void BindStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream |
UnbindStream()
Unbinds the current stream. This call is coupled with BindStream(stream)
Declaration
public void UnbindStream()