// unit Classes;
type
TStreamOriginalFormat = (sofUnknown, sofBinary, sofText, sofUTF8Text);
procedure ObjectBinaryToText(Input, Output: TStream);
overload;
procedure ObjectBinaryToText(Input, Output: TStream;
var OriginalFormat: TStreamOriginalFormat);
overload;
procedure ObjectTextToBinary(Input, Output: TStream);
overload;
procedure ObjectTextToBinary(Input, Output: TStream;
var OriginalFormat: TStreamOriginalFormat);
overload;
procedure ObjectResourceToText(Input, Output: TStream);
overload;
procedure ObjectResourceToText(Input, Output: TStream;
var OriginalFormat: TStreamOriginalFormat);
overload;
procedure ObjectTextToResource(Input, Output: TStream);
overload;
procedure ObjectTextToResource(Input, Output: TStream;
var OriginalFormat: TStreamOriginalFormat);
overload;
function TestStreamFormat(Stream: TStream): TStreamOriginalFormat;