public final class VisioTextExtractor extends java.lang.Object implements POIOLE2TextExtractor
Constructor and Description |
---|
VisioTextExtractor(DirectoryNode dir) |
VisioTextExtractor(HDGFDiagram hdgf) |
VisioTextExtractor(java.io.InputStream inp) |
VisioTextExtractor(POIFSFileSystem fs) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAllText()
Locates all the text entries in the file, and returns their contents.
(定位文件中的所有文本条目,并返回它们的内容。)
|
HDGFDiagram |
getDocument()
Return the underlying POIDocument
(返回底层 POIDocument)
|
HDGFDiagram |
getFilesystem() |
java.lang.String |
getText()
Returns the textual contents of the file.
(返回文件的文本内容。)
|
boolean |
isCloseFilesystem() |
void |
setCloseFilesystem(boolean doCloseFilesystem) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformation
close
public VisioTextExtractor(HDGFDiagram hdgf)
public VisioTextExtractor(POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public VisioTextExtractor(DirectoryNode dir) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public VisioTextExtractor(java.io.InputStream inp) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public java.lang.String[] getAllText()
public java.lang.String getText()
getText
in interface
POITextExtractor
(接口 POITextExtractor 中的 getText)
\n
(本文档中包含的所有文本,以)
public HDGFDiagram getDocument()
POIOLE2TextExtractor
getDocument
in interface
POIOLE2TextExtractor
()
getDocument
in interface
POITextExtractor
(接口 POITextExtractor 中的 getDocument)
public void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem
in interface
POITextExtractor
()
doCloseFilesystem
-
true
(default), if underlying resources/filesystem should be closed on
POITextExtractor.close()
(doCloseFilesystem - true(默认),如果底层资源/文件系统应该在 POITextExtractor.close() 上关闭)
public boolean isCloseFilesystem()
isCloseFilesystem
in interface
POITextExtractor
(接口 POITextExtractor 中的 isCloseFilesystem)
true
, if resources/filesystem should be closed on
POITextExtractor.close()
(true,如果资源/文件系统应该在 POITextExtractor.close() 上关闭)
public HDGFDiagram getFilesystem()
getFilesystem
in interface
POITextExtractor
(接口 POITextExtractor 中的 getFilesystem)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.