Для изменения размера нажмите или перетащите

EncodingTranslatorStream(Stream, Encoding, Boolean, Encoding, Boolean) - конструктор

Constructor. Specifies the input and output encoding, and a byte order mark detection option for the input stream

Пространство имён:  Tessa.Platform.IO
Сборка:  Tessa (в Tessa.dll) Версия: 3.5.0.19
Синтаксис
public EncodingTranslatorStream(
	Stream stream,
	Encoding streamEncoding,
	bool detectInputEncodingFromBOM,
	Encoding outputEncoding,
	bool disposeStream = false
)

Параметры

stream
Тип: System.IOStream
Input data, that will be decoded and re-encode into the specified output encoding
streamEncoding
Тип: System.TextEncoding
The input character encoding to use.
detectInputEncodingFromBOM
Тип: SystemBoolean
Indicates whether to look for byte order marks at the beginning of the input stream.
outputEncoding
Тип: System.TextEncoding
Output encoding
disposeStream (Optional)
Тип: SystemBoolean
Dispose stream when current object is disposed.
Заметки
This constructor initializes the encoding as specified by the encoding parameter. The detectInputEncodingFromBOM parameter, if true, detects the encoding by looking at the first three bytes of the stream. It automatically recognizes UTF-8, little-endian Unicode, and big-endian Unicode text if the file starts with the appropriate byte order marks. Otherwise, the user-provided encoding is used.
См. также