当前位置: 首页>>代码示例>>Java>>正文


Java NPOIFSFileSystem.getRoot方法代码示例

本文整理汇总了Java中org.apache.poi.poifs.filesystem.NPOIFSFileSystem.getRoot方法的典型用法代码示例。如果您正苦于以下问题:Java NPOIFSFileSystem.getRoot方法的具体用法?Java NPOIFSFileSystem.getRoot怎么用?Java NPOIFSFileSystem.getRoot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.poi.poifs.filesystem.NPOIFSFileSystem的用法示例。


在下文中一共展示了NPOIFSFileSystem.getRoot方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: execute

import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
public void execute(String fileName, JOfficeFrame jOfficeFrame) 
    throws FileNotFoundException, IOException {
  
  NPOIFSFileSystem fs = new NPOIFSFileSystem(new File(fileName));

  DirectoryNode directoryNode = fs.getRoot();
  
  String workbookName = HSSFWorkbook.getWorkbookDirEntryName(directoryNode);
  
  HSSFWorkbook workbook = new HSSFWorkbook(directoryNode, true);
  
  workbook.getDocumentSummaryInformation();
  workbook.getSummaryInformation();
  
  InputStream stream = directoryNode
      .createDocumentInputStream(workbookName);

  jOfficeFrame.updateTreeTable(RecordFactory.createRecords(stream));
  
  /**
   * Process Summary Information and Document SummaryInformation
   */
  processDocumentSummaryInformation(workbook.getDocumentSummaryInformation(), jOfficeFrame);
  processSummaryInformation(workbook.getSummaryInformation(), jOfficeFrame);
  fs.close();
}
 
开发者ID:hussainp,项目名称:JOffVis,代码行数:27,代码来源:XLSStrategy.java

示例2: isContentIdentical

import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
private boolean isContentIdentical(NPOIFSFileSystem fs1, NPOIFSFileSystem fs2, Collection<String> excludes) throws IOException
{
    DirectoryEntry de1 = fs1.getRoot();
    DirectoryEntry de2 = fs2.getRoot();

    FilteringDirectoryNode fs1Filtered = new FilteringDirectoryNode(de1, excludes);
    FilteringDirectoryNode fs2Filtered = new FilteringDirectoryNode(de2, excludes);

    boolean retVal = EntryUtils.areDirectoriesIdentical(fs1Filtered, fs2Filtered);
    if(logger.isDebugEnabled())
    {
        logger.debug("returning equal="+ retVal);
    }
    return retVal;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:16,代码来源:CIFSContentComparator.java

示例3: OutlookExtractor

import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
public OutlookExtractor(NPOIFSFileSystem filesystem, ParseContext context) throws TikaException {
    this(filesystem.getRoot(), context);
}
 
开发者ID:kolbasa,项目名称:OCRaptor,代码行数:4,代码来源:OutlookExtractor.java

示例4: HPBFDocument

import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
public HPBFDocument(NPOIFSFileSystem fs) throws IOException {
   this(fs.getRoot());
}
 
开发者ID:rmage,项目名称:gnvc-ims,代码行数:4,代码来源:HPBFDocument.java

示例5: VisioTextExtractor

import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
public VisioTextExtractor(NPOIFSFileSystem fs) throws IOException {
   this(fs.getRoot());
}
 
开发者ID:rmage,项目名称:gnvc-ims,代码行数:4,代码来源:VisioTextExtractor.java

示例6: HDGFDiagram

import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
public HDGFDiagram(NPOIFSFileSystem fs) throws IOException {
   this(fs.getRoot());
}
 
开发者ID:rmage,项目名称:gnvc-ims,代码行数:4,代码来源:HDGFDiagram.java

示例7: PowerPointExtractor

import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
/**
 * Creates a PowerPointExtractor, from an open NPOIFSFileSystem
 *
 * @param fs the NPOIFSFileSystem containing the PowerPoint document
 */
public PowerPointExtractor(NPOIFSFileSystem fs) throws IOException {
   this(fs.getRoot());
}
 
开发者ID:rmage,项目名称:gnvc-ims,代码行数:9,代码来源:PowerPointExtractor.java

示例8: HSLFSlideShow

import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
/**
 * Constructs a Powerpoint document from a POIFS Filesystem. Parses the
 * document and places all the important stuff into data structures.
 *
 * @param filesystem the POIFS FileSystem to read from
 * @throws IOException if there is a problem while parsing the document.
 */
public HSLFSlideShow(NPOIFSFileSystem filesystem) throws IOException
{
   this(filesystem.getRoot());
}
 
开发者ID:rmage,项目名称:gnvc-ims,代码行数:12,代码来源:HSLFSlideShow.java

示例9: MAPIMessage

import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
/**
 * Constructor for reading MSG Files from a POIFS filesystem
 * @param fs
 * @throws IOException
 */
public MAPIMessage(NPOIFSFileSystem fs) throws IOException {
   this(fs.getRoot());
}
 
开发者ID:rmage,项目名称:gnvc-ims,代码行数:9,代码来源:MAPIMessage.java


注:本文中的org.apache.poi.poifs.filesystem.NPOIFSFileSystem.getRoot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。