org.apache.poi.hdgf.extractor
Class VisioTextExtractor
java.lang.Object
org.apache.poi.hdgf.extractor.VisioTextExtractor
public class VisioTextExtractor
- extends java.lang.Object
Class to find all the text in a Visio file, and return it.
Can opperate on the command line (outputs to stdout), or
can return the text for you (eg for use with Lucene).
Method Summary |
java.lang.String[] |
getAllText()
Locates all the text entries in the file, and returns their
contents. |
java.lang.String |
getText()
Returns the textual contents of the file. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VisioTextExtractor
public VisioTextExtractor(HDGFDiagram hdgf)
VisioTextExtractor
public VisioTextExtractor(POIFSFileSystem fs)
throws java.io.IOException
- Throws:
java.io.IOException
VisioTextExtractor
public VisioTextExtractor(java.io.InputStream inp)
throws java.io.IOException
- Throws:
java.io.IOException
getAllText
public java.lang.String[] getAllText()
- Locates all the text entries in the file, and returns their
contents.
getText
public java.lang.String getText()
- Returns the textual contents of the file.
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright 2007 The Apache Software Foundation or
its licensors, as applicable.