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.List<java.lang.String> 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
(获取 powerpoint 文件的所有文本,作为单个字符串)
|
java.util.List<java.lang.String> |
getTextAsVector()
Fetches the ALL the text of the powerpoint file, in a List of strings, one per text record
(获取 powerpoint 文件的所有文本,在字符串列表中,每个文本记录一个)
|
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
(java.io.IOException)
public QuickButCruddyTextExtractor(java.io.InputStream iStream) throws java.io.IOException
iStream
-
(iStream -)
java.io.IOException
(java.io.IOException)
public QuickButCruddyTextExtractor(POIFSFileSystem poifs) throws java.io.IOException
poifs
-
(泡芙 -)
java.io.IOException
(java.io.IOException)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public void close() throws java.io.IOException
java.io.IOException
(java.io.IOException)
public java.lang.String getTextAsString()
public java.util.List<java.lang.String> getTextAsVector()
public int findTextRecords(int startPos, java.util.List<java.lang.String> textV)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.