public FileContentReaderWriter(Provider provider, Stream contentStream, ContentParameters dynParams) { _provider = provider; _contentStream = contentStream; _contentStream.Position = 0; if (dynParams != null) { _encoding = dynParams.Encoding; } }