protected XmlUtf8RawTextWriter( XmlWriterSettings settings, bool closeOutput ) {
// copy settings
newLineHandling = settings.NewLineHandling;
omitXmlDeclaration = settings.OmitXmlDeclaration;
newLineChars = settings.NewLineChars;
standalone = settings.Standalone;
outputMethod = settings.OutputMethod;
checkCharacters = settings.CheckCharacters;
mergeCDataSections = settings.MergeCDataSections;
this.closeOutput = closeOutput;
if ( checkCharacters && newLineHandling == NewLineHandling.Replace ) {
ValidateContentChars( newLineChars, "NewLineChars", false );
}
}