public void EndOfInput() { Output.FileComplete(); Output.Complete(); _extendedStreamReader.Close(); _extendedStreamReader.Dispose(); _extendedStreamReader = null; }
public void SetFileProperties(IFileProperties fileInfo) { try { _extendedStreamReader = _fileHelper.GetExtendedStreamReader(_originalFileProperties.OriginalFilePath); } catch (System.IO.DirectoryNotFoundException) { //if we can't find the directory, we read from the embedded base64 in the sdlxliff file _extendedStreamReader = _fileHelper.GetExtendedStreamReader(_originalFileProperties.DependencyFiles.First().CurrentFilePath); } _streamWriter = _fileHelper.GetStreamWriter(_nativeFileProperties.OutputFilePath); _lineParsingSession = _lineParser.StartLineParsingSession(); }
public void StartOfInput() { _lineParsingSession = _lineParser.StartLineParsingSession(); _extendedStreamReader = _fileHelper.GetExtendedStreamReader(_originalFilePath); _totalNumberOfLines = _fileHelper.GetExtendedStreamReader(_originalFilePath) .GetLinesWithEofLine() .Count(); var dependencyFileProperties = PropertiesFactory.CreateDependencyFileProperties(_fileConversionProperties.OriginalFilePath); dependencyFileProperties.PreferredLinkage = DependencyFileLinkOption.Embed; _fileConversionProperties.DependencyFiles.Add(dependencyFileProperties); ProgressInPercent = 0; }