Package org.apache.poi.xdgf.extractor
Class XDGFVisioExtractor
- java.lang.Object
-
- org.apache.poi.xdgf.extractor.XDGFVisioExtractor
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,POITextExtractor,POIXMLTextExtractor
public class XDGFVisioExtractor extends java.lang.Object implements POIXMLTextExtractor
Helper class to extract text from an OOXML Visio File
-
-
Constructor Summary
Constructors Constructor Description XDGFVisioExtractor(OPCPackage openPackage)XDGFVisioExtractor(XmlVisioDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlVisioDocumentgetDocument()Returns opened documentXmlVisioDocumentgetFilesystem()java.lang.StringgetText()Retrieves all the text from the document.booleanisCloseFilesystem()voidsetCloseFilesystem(boolean doCloseFilesystem)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.ooxml.extractor.POIXMLTextExtractor
checkMaxTextSize, close, getCoreProperties, getCustomProperties, getExtendedProperties, getMetadataTextExtractor, getPackage
-
-
-
-
Constructor Detail
-
XDGFVisioExtractor
public XDGFVisioExtractor(XmlVisioDocument document)
-
XDGFVisioExtractor
public XDGFVisioExtractor(OPCPackage openPackage) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getText
public java.lang.String getText()
Description copied from interface:POITextExtractorRetrieves all the text from the document. How cells, paragraphs etc are separated in the text is implementation specific - see the javadocs for a specific project for details.- Specified by:
getTextin interfacePOITextExtractor- Returns:
- All the text from the document
-
getDocument
public XmlVisioDocument getDocument()
Description copied from interface:POIXMLTextExtractorReturns opened document- Specified by:
getDocumentin interfacePOITextExtractor- Specified by:
getDocumentin interfacePOIXMLTextExtractor- Returns:
- the opened document
-
setCloseFilesystem
public void setCloseFilesystem(boolean doCloseFilesystem)
- Specified by:
setCloseFilesystemin interfacePOITextExtractor- Parameters:
doCloseFilesystem-true(default), if underlying resources/filesystem should be closed onPOITextExtractor.close()
-
isCloseFilesystem
public boolean isCloseFilesystem()
- Specified by:
isCloseFilesystemin interfacePOITextExtractor- Returns:
true, if resources/filesystem should be closed onPOITextExtractor.close()
-
getFilesystem
public XmlVisioDocument getFilesystem()
- Specified by:
getFilesystemin interfacePOITextExtractor- Returns:
- The underlying resources/filesystem
-
-