|
@@ -124,7 +124,7 @@ Type
|
|
// simple parsing
|
|
// simple parsing
|
|
procedure ParseValue;
|
|
procedure ParseValue;
|
|
public
|
|
public
|
|
- constructor Create;
|
|
|
|
|
|
+ constructor Create; override;
|
|
destructor Destroy; override;
|
|
destructor Destroy; override;
|
|
// Source data stream
|
|
// Source data stream
|
|
procedure SetSource(AStream: TStream); overload;
|
|
procedure SetSource(AStream: TStream); overload;
|
|
@@ -161,7 +161,7 @@ Type
|
|
procedure AppendStringToStream(const AString: String; AStream: TStream);
|
|
procedure AppendStringToStream(const AString: String; AStream: TStream);
|
|
function QuoteCSVString(const AValue: String): String;
|
|
function QuoteCSVString(const AValue: String): String;
|
|
public
|
|
public
|
|
- constructor Create;
|
|
|
|
|
|
+ constructor Create; override;
|
|
destructor Destroy; override;
|
|
destructor Destroy; override;
|
|
// Set output/destination stream.
|
|
// Set output/destination stream.
|
|
// If not called, output is sent to DefaultOutput
|
|
// If not called, output is sent to DefaultOutput
|
|
@@ -455,6 +455,7 @@ var
|
|
b: packed array[0..2] of byte;
|
|
b: packed array[0..2] of byte;
|
|
n: Integer;
|
|
n: Integer;
|
|
begin
|
|
begin
|
|
|
|
+ B[0]:=0; B[1]:=0; B[2]:=0;
|
|
ClearOutput;
|
|
ClearOutput;
|
|
FSourceStream.Seek(0, soFromBeginning);
|
|
FSourceStream.Seek(0, soFromBeginning);
|
|
if FDetectBOM then
|
|
if FDetectBOM then
|