Package org.apache.poi.hdgf.extractor
Class VisioTextExtractor
java.lang.Object
org.apache.poi.hdgf.extractor.VisioTextExtractor
- All Implemented Interfaces:
Closeable,AutoCloseable,POIOLE2TextExtractor,POITextExtractor
Class to find all the text in a Visio file, and return it.
Can operate on the command line (outputs to stdout), or
can return the text for you (example: for use with Lucene).
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionString[]Locates all the text entries in the file, and returns their contents.Return the underlying POIDocumentgetText()Returns the textual contents of the file.booleanvoidsetCloseFilesystem(boolean doCloseFilesystem) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformationMethods inherited from interface org.apache.poi.extractor.POITextExtractor
close
-
Constructor Details
-
VisioTextExtractor
-
VisioTextExtractor
- Throws:
IOException
-
VisioTextExtractor
- Throws:
IOException
-
VisioTextExtractor
- Throws:
IOException
-
-
Method Details
-
getAllText
Locates all the text entries in the file, and returns their contents.- Returns:
- An array of each Text item in the document
-
getText
Returns the textual contents of the file. Each textual object's text will be separated by a newline- Specified by:
getTextin interfacePOITextExtractor- Returns:
- All text contained in this document, separated by
\n
-
getDocument
Description copied from interface:POIOLE2TextExtractorReturn the underlying POIDocument- Specified by:
getDocumentin interfacePOIOLE2TextExtractor- Specified by:
getDocumentin interfacePOITextExtractor- Returns:
- the underlying POIDocument
-
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
- Specified by:
getFilesystemin interfacePOITextExtractor- Returns:
- The underlying resources/filesystem
-