org.apache.poi.hslf.extractor
public final class QuickButCruddyTextExtractor extends java.lang.Object
Constructor and Description |
---|
QuickButCruddyTextExtractor(java.io.InputStream iStream)
Creates an extractor from a given input stream
|
QuickButCruddyTextExtractor(POIFSFileSystem poifs)
Creates an extractor from a POIFS Filesystem
|
QuickButCruddyTextExtractor(java.lang.String fileName)
Creates an extractor from a given file name
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the underlying streams
|
int |
findTextRecords(int startPos,
java.util.Vector textV)
For the given position, look if the record is a text record, and wind
on after.
|
java.lang.String |
getTextAsString()
Fetches the ALL the text of the powerpoint file, as a single string
|
java.util.Vector |
getTextAsVector()
Fetches the ALL the text of the powerpoint file, in a vector of
strings, one per text record
|
static void |
main(java.lang.String[] args)
Really basic text extractor, that will also return lots of crud text.
|
public QuickButCruddyTextExtractor(java.lang.String fileName) throws java.io.IOException
fileName
- java.io.IOException
public QuickButCruddyTextExtractor(java.io.InputStream iStream) throws java.io.IOException
iStream
- java.io.IOException
public QuickButCruddyTextExtractor(POIFSFileSystem poifs) throws java.io.IOException
poifs
- java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public java.lang.String getTextAsString()
public java.util.Vector getTextAsVector()
public int findTextRecords(int startPos, java.util.Vector textV)
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.