Class VisioTextExtractor

All Implemented Interfaces:
Closeable, AutoCloseable

public final class VisioTextExtractor extends POIOLE2TextExtractor
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 Details

  • Method Details

    • getAllText

      public String[] getAllText()
      Locates all the text entries in the file, and returns their contents.
      Returns:
      An array of each Text item in the document
    • getText

      public String getText()
      Returns the textual contents of the file. Each textual object's text will be separated by a newline
      Specified by:
      getText in class POITextExtractor
      Returns:
      All text contained in this document, separated by \n
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception