Method LoadStream
LoadStream(TextReader)
Loads the contents of a stream into string collection.
public virtual bool LoadStream(TextReader reader)
Parameters
reader
TextReaderThe TextReader object to read text.
Returns
- bool
True if succeed; otherwise false.
LoadStream(TextReader, IStringImport)
Loads the contents of the specified stream.
public virtual bool LoadStream(TextReader reader, IStringImport importer)
Parameters
reader
TextReaderThe TextReader object to read text.
importer
IStringImportSpecifies importer to load content.
Returns
- bool
True is succeed; otherwise false.
LoadStream(Stream)
Loads the contents of a stream into string collection.
public virtual bool LoadStream(Stream stream)
Parameters
stream
StreamThe Stream object to read text.
Returns
- bool
True if succeed; otherwise false.
LoadStream(Stream, Encoding)
Loads the contents of the specified stream.
public virtual bool LoadStream(Stream stream, Encoding encoding)
Parameters
stream
StreamThe Stream object to read text.
encoding
EncodingSpecifies the character encoding to use.
Returns
- bool
True is succeed; otherwise false.
LoadStream(Stream, IStringImport)
Loads the text content from the given stream with specified importer.
public virtual bool LoadStream(Stream stream, IStringImport importer)
Parameters
stream
StreamThe Stream object to write the text.
importer
IStringImportSpecifies importer to load content.
Returns
- bool
True is succeed; otherwise false.
LoadStream(Stream, IStringImport, Encoding)
Loads the text content from the given stream with specified importer.
public virtual bool LoadStream(Stream stream, IStringImport importer, Encoding encoding)
Parameters
stream
StreamThe Stream object to write the text.
importer
IStringImportSpecifies importer to load content.
encoding
EncodingSpecifies the character encoding to use.
Returns
- bool
True is succeed; otherwise false.