Stream wrapper class, provides many usefull read and write methods for stream.
| C# | Visual Basic | Managed C++ |
public class StreamHelper
Public Class StreamHelper
public ref class StreamHelper
| All Members | Constructors | Methods | Properties | Fields | Events |
| Icon | Member | Description |
|---|---|---|
| StreamHelperNew(Stream) |
Default constructor.
| |
| StreamHelperNew(Stream, Int32, Boolean) |
Default constructor.
| |
| BeginRead(Stream, Int32, ReadToStreamCallback, Object) |
Starts reading specified amount data and storing to the specified store stream.
| |
| BeginReadAll(Stream, Int32, SizeExceededAction, ReadToStreamCallback, Object) |
Starts reading all source stream data.
| |
| BeginReadHeader(Stream, Int32, SizeExceededAction, ReadToStreamCallback, Object) |
Starts reading header from source stream. Reads header data while gets blank line, what is
header terminator. For example this method can be used for reading mail,http,sip, ... headers.
| |
| BeginReadLine(Byte[](), Object, ReadLineCallback) |
Starts reading line from source stream.
| |
| BeginReadLine(Byte[](), SizeExceededAction, Object, ReadLineCallback) |
Starts reading line from source stream.
| |
| BeginReadPeriodTerminated(Stream, Int32, SizeExceededAction, ReadToStreamCallback, Object) |
Begins reading period terminated data from source stream. Reads data while gets single period on line,
what is data terminator.
| |
| BeginWrite(Byte[](), WriteCallback) |
Starts writing specified data to source stream.
| |
| BeginWrite(Byte[](), Int32, Int32, WriteCallback) |
Starts writing specified data to source stream.
| |
| BeginWrite(Stream, Int32, WriteStreamCallback) |
Strats writing specified amount of data from stream to source stream.
| |
| BeginWriteAll(Stream, Int32, Object, WriteStreamCallback) |
Starts writing all stream data to source stream.
| |
| BeginWritePeriodTerminated(Stream, Int32, Object, WriteStreamCallback) |
Starts writing stream data to source stream. Data will be period handled and terminated as needed.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode() | Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType() | Gets the Type of the current instance. (Inherited from Object.) | |
| IsReadBuffered |
Gets if source stream reads are buffered.
| |
| Logger |
Gets or sets logger to use for logging.
| |
| MaximumLineSize |
Gets maximum allowed line size in bytes.
| |
| MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Read(Stream, Int32) |
Reads specified amount of data from source stream and stores to specified store stream.
| |
| ReadAll(Stream, Int32) |
Reads all source stream data and stores to the specified store stream.
| |
| ReadAll(Stream, Int32, SizeExceededAction) |
Reads all source stream data and stores to the specified store stream.
| |
| ReadByte() |
Reades byte from source stream. Returns -1 if end of stream reached and no more data.
| |
| ReadHeader(Stream, Int32, SizeExceededAction) |
Reads header from source stream and stores to the specified stream. Reads header data while
gets blank line, what is header terminator. For example this method can be used for reading
mail,http,sip, ... headers.
| |
| ReadLine(Byte[]()) |
Reads line from source stream and stores to specified buffer. This method accepts LF or CRLF lines.
| |
| ReadLine(Byte[](), SizeExceededAction) |
Reads line from source stream and stores to specified buffer. This method accepts LF or CRLF lines.
| |
| ReadLine(Encoding) |
Reads line from source stream.
| |
| ReadLine(Encoding, SizeExceededAction) |
Reads line from source stream.
| |
| ReadLineInternal(Byte[](), SizeExceededAction, Int32, Boolean) |
Reads line from source stream and stores to specified buffer. This method accepts LF or CRLF lines.
| |
| ReadPeriodTerminated(Stream, Int32, SizeExceededAction) |
Reads period terminated data from source stream. Reads data while gets single period on line,
what is data terminator.
| |
| Stream |
Gets underlying stream.
| |
| ToString() | (Inherited from Object.) | |
| Write(Byte[]()) |
Writes specified buffer data to source stream.
| |
| Write(Byte[](), Int32, Int32) |
Writes specified buffer data to source stream.
| |
| Write(Stream, Int32) |
Reads specified amount of data for the specified stream and writes it to source stream.
| |
| WriteAll(Stream) |
Writes all stream data to source stream.
| |
| WriteAll(Stream, Int32) |
Writes all stream data to source stream.
| |
| WritePeriodTerminated(Stream) |
Reades all data from the specified stream and writes it to source stream. Period handlign and period terminator is added as required.
| |
| WritePeriodTerminated(Stream, Int32) |
Reades all data from the specified stream and writes it to source stream. Period handlign and period terminator is added as required.
|
| Object | |
| StreamHelper | |
Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)