Package org.apache.poi.hdgf.extractor
Class VisioTextExtractor
java.lang.Object
org.apache.poi.extractor.POITextExtractor
org.apache.poi.extractor.POIOLE2TextExtractor
org.apache.poi.hdgf.extractor.VisioTextExtractor
- All Implemented Interfaces:
Closeable
,AutoCloseable
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).
-
Field Summary
Fields inherited from class org.apache.poi.extractor.POIOLE2TextExtractor
document
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Methods inherited from class org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getDocument, getMetadataTextExtractor, getRoot, getSummaryInformation
Methods inherited from class org.apache.poi.extractor.POITextExtractor
close, setFilesystem
-
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:
getText
in classPOITextExtractor
- Returns:
- All text contained in this document, separated by
\n
-
main
- Throws:
Exception
-