public XLSXPlugin(string contentFormat, string contentEncoding, string currentFile, string currentWorkingDirectory)
 {
     this.contentFormat = new ContentType(contentFormat, contentEncoding);
     this.currentFile = currentFile;
     fileInput = new FileStream(Path.Combine(currentWorkingDirectory, this.currentFile), FileMode.Open, FileAccess.Read);
     workBook = new XSSFWorkbook(this.fileInput);
     currentPageName = currentFile.Substring(this.currentFile.LastIndexOf("/") + 1, this.currentFile.LastIndexOf("."));
     this.currentWorkingDirectory = currentWorkingDirectory;
     sheet = workBook.GetSheet("Sheet1");
     cmsBlockFactory = new CMSBlockFactory(currentPageName);
     processDataRows();
 }
 public JSONPlugin(string contentFormat, string contentEncoding, string currentFile, string currentWorkingDirectory)
 {
     this.contentFormat = new ContentType(contentFormat, contentEncoding);
     this.currentFile = currentFile;
     fileInput = new FileStream(Path.Combine(currentWorkingDirectory, this.currentFile), FileMode.Open, FileAccess.Read);
     currentPageName = currentFile.Substring(this.currentFile.LastIndexOf("/") + 1, this.currentFile.LastIndexOf("."));
     this.currentWorkingDirectory = currentWorkingDirectory;
     objJSON = JObject.Parse(GetFileStreamAsString(fileInput));
     cmsBlockFactory = new CMSBlockFactory(currentPageName);
     processDataRows();
 }
 public XMLPlugin(string contentFormat, string contentEncoding, string currentFile, string currentWorkingDirectory)
 {
     this.contentFormat = new ContentType(contentFormat, contentEncoding);
     this.currentFile = currentFile;
     fileInput = new FileStream(Path.Combine(currentWorkingDirectory, this.currentFile), FileMode.Open, FileAccess.Read);
     currentPageName = currentFile.Substring(this.currentFile.LastIndexOf("/") + 1, this.currentFile.LastIndexOf("."));
     this.currentWorkingDirectory = currentWorkingDirectory;
     languages = new List<CMSLanguage>();
     cmsBlocks = new List<CMSBlock>();
     doc = new XmlDocument();
     cmsBlockFactory = new CMSBlockFactory(currentWorkingDirectory);
     processDataRows();
 }