本文整理汇总了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();
}
示例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;
}
示例3: OutlookExtractor
import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
public OutlookExtractor(NPOIFSFileSystem filesystem, ParseContext context) throws TikaException {
this(filesystem.getRoot(), context);
}
示例4: HPBFDocument
import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
public HPBFDocument(NPOIFSFileSystem fs) throws IOException {
this(fs.getRoot());
}
示例5: VisioTextExtractor
import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
public VisioTextExtractor(NPOIFSFileSystem fs) throws IOException {
this(fs.getRoot());
}
示例6: HDGFDiagram
import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; //导入方法依赖的package包/类
public HDGFDiagram(NPOIFSFileSystem fs) throws IOException {
this(fs.getRoot());
}
示例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());
}
示例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());
}
示例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());
}