TDIUnicodeReader.SourceStream, the size of the internal source buffer was not correctly calculated. Depending on the decoding, this slowed down reading or even stoped it before the end of the stream was reached.
TDIUnicodeReader.SkipEmptyLinesconsumed additional chars after the line break.
TDIUnicodeReader.FillSourceBuffer(source code edition only).
TDIUnicodeReaderwhen a pushed source was popped at the end of a nested document.
TDIUnicodeReader.ReadBOMfunction which returns the Byte Order Mark (BOM) found at the current position and advances the position accordingly.
TDIUnicodeReader.SourceFileproperty as a simple means to read from a file.
TDIUnicodeReader.SaveDataToStreamwhich controls if a UTF-16/UCS-2 little endian byte order mark is being written in front of the data.
Write_UTF_7_ODC/ reads as
Write_UTF_7) or without (
Write_UTF_7_ODC) encoding optional direct characters. UTF-7 reading (
Read_UTF_7) works equaly well for both writing methods.
TDIUnicodeWriterto allow data buffering between consecutive reads and writes.
TDIUnicodeReader.PopSourcemethods added to which allow to insert one source into another, like for Pascal
TDIUnicodeReadercan optionally free its source stream if the reading reached the end of the stream. This is especially usefull when reading nested files using the
TDIUnicodeReader.PopSourcemethods. The protected property
TDIUnicodeReader.AutoFreeSourceStreamsmay be used by descendent classes which implement specialized reading / parsing.
TDIUnicodeReader, as well as for retrieving data as trimmed strings.