MultiRecordEngine Methods |
The MultiRecordEngine type exposes the following members.
Name | Description | |
---|---|---|
AppendToFile(String, IEnumerable) |
Append an array of records to the specified file.
| |
AppendToFile(String, Object) |
Append a record to the specified file.
| |
BeginAppendToFile | Open a file to be appended at the end. | |
BeginReadFile |
Method used to use this engine in Async mode. Work together with
ReadNext. (Remember to call Close after read the
data)
| |
BeginReadStream(TextReader) |
Read a generic file as delimited by newlines
| |
BeginReadStream(IRecordReader) |
Method used to use this engine in Async mode. Work together with
ReadNext. (Remember to call Close after read the
data)
| |
BeginReadString |
Method used to use this engine in Async mode. Work together with
ReadNext. (Remember to call Close after read the
data)
| |
BeginWriteFile |
Open a file for write operations. If exist the engine override it.
You can use WriteNext(Object) or WriteNexts(IEnumerable) to
write records.
| |
BeginWriteStream | Set the stream to be used in the WriteNext(Object) operation. | |
Close |
Close the underlining Readers and Writers. (if any)
| |
Flush |
Save all the buffered data for write to the disk.
Useful to long opened async engines that wants to save pending
values or for engines used for logging.
| |
GetFileHeader |
Builds a line with the name of the fields, for a delimited files it
uses the same delimiter, for a fixed length field it writes the
fields names separated with tabs
(Inherited from EngineBase.) | |
ReadFile |
Reads a file and returns the records.
| |
ReadNext |
Reads the next record from the source
| |
ReadNexts |
Read a defined number of records from the source
| |
ReadStream(TextReader) |
Read an array of objects from a stream
| |
ReadStream(IRecordReader) |
Read a Stream and return an array of the contained records.
| |
ReadString |
Read a String and return an array of the contained records.
| |
WriteFile(String, IEnumerable) |
Write an array of records to the specified file.
| |
WriteFile(String, IEnumerable, Int32) |
Write the specified number of records from the array to a file.
| |
WriteNext |
Write the next record to a file or stream opened with
BeginWriteFile(String), BeginWriteStream(TextWriter) or
BeginAppendToFile(String) method.
| |
WriteNexts |
Write the nexts records to a file or stream opened with
BeginWriteFile(String), BeginWriteStream(TextWriter) or
BeginAppendToFile(String) method.
| |
WriteStream(TextWriter, IEnumerable) |
Write the records to a file
| |
WriteStream(TextWriter, IEnumerable, Int32) |
Write the specified number of records in the array to the Stream.
| |
WriteString(IEnumerable) |
Write an array of records to an String and return it.
| |
WriteString(IEnumerable, Int32) |
Write an array of records to an String and return it.
|