LoadStream Method
LoadStream(TextReader)
Loads the contents of the specified stream.
Declaration
public virtual bool LoadStream(TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
TextReader | reader | The TextReader object to read text. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
LoadStream(TextReader, IStringImport)
Loads the contents of the specified stream.
Declaration
public virtual bool LoadStream(TextReader reader, IStringImport importer)
Parameters
Type | Name | Description |
---|---|---|
TextReader | reader | The TextReader object to read text. |
IStringImport | importer | Specifies importer to load content. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
LoadStream(Stream)
Loads the contents of the specified stream.
Declaration
public virtual bool LoadStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The Stream object to read text. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
LoadStream(Stream, Encoding)
Loads the contents of the specified stream.
Declaration
public virtual bool LoadStream(Stream stream, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The Stream object to read text. |
Encoding | encoding | Specifies the character encoding to use. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
LoadStream(Stream, IStringImport)
Loads the text content from the given stream with specified importer.
Declaration
public virtual bool LoadStream(Stream stream, IStringImport importer)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The Stream object to write the text. |
IStringImport | importer | Specifies importer to load content. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
LoadStream(Stream, IStringImport, Encoding)
Loads the text content from the given stream with specified importer.
Declaration
public virtual bool LoadStream(Stream stream, IStringImport importer, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The Stream object to write the text. |
IStringImport | importer | Specifies importer to load content. |
Encoding | encoding | Specifies the character encoding to use. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |