Package org.apache.poi.hwpf.extractor
Class Word6Extractor
- java.lang.Object
-
- org.apache.poi.hwpf.extractor.Word6Extractor
-
- All Implemented Interfaces:
Closeable,AutoCloseable,POIOLE2TextExtractor,POITextExtractor
public final class Word6Extractor extends Object implements POIOLE2TextExtractor
Class to extract the text from old (Word 6 / Word 95) Word Documents. This should only be used on the older files, for most uses you should callWordExtractorwhich deals properly with HWPF.
-
-
Constructor Summary
Constructors Constructor Description Word6Extractor(InputStream is)Create a new Word ExtractorWord6Extractor(HWPFOldDocument doc)Create a new Word ExtractorWord6Extractor(DirectoryNode dir)Word6Extractor(DirectoryNode dir, POIFSFileSystem fs)Deprecated.UseWord6Extractor(DirectoryNode)insteadWord6Extractor(POIFSFileSystem fs)Create a new Word Extractor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HWPFOldDocumentgetDocument()HWPFOldDocumentgetFilesystem()String[]getParagraphText()Deprecated.StringgetText()booleanisCloseFilesystem()voidsetCloseFilesystem(boolean doCloseFilesystem)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.extractor.POIOLE2TextExtractor
getDocSummaryInformation, getMetadataTextExtractor, getRoot, getSummaryInformation
-
Methods inherited from interface org.apache.poi.extractor.POITextExtractor
close
-
-
-
-
Constructor Detail
-
Word6Extractor
public Word6Extractor(InputStream is) throws IOException
Create a new Word Extractor- Parameters:
is- InputStream containing the word file- Throws:
IOException
-
Word6Extractor
public Word6Extractor(POIFSFileSystem fs) throws IOException
Create a new Word Extractor- Parameters:
fs- POIFSFileSystem containing the word file- Throws:
IOException
-
Word6Extractor
@Deprecated public Word6Extractor(DirectoryNode dir, POIFSFileSystem fs) throws IOException
Deprecated.UseWord6Extractor(DirectoryNode)instead- Throws:
IOException
-
Word6Extractor
public Word6Extractor(DirectoryNode dir) throws IOException
- Throws:
IOException
-
Word6Extractor
public Word6Extractor(HWPFOldDocument doc)
Create a new Word Extractor- Parameters:
doc- The HWPFOldDocument to extract from
-
-
Method Detail
-
getParagraphText
@Deprecated public String[] getParagraphText()
Deprecated.Get the text from the word file, as an array with one String per paragraph
-
getText
public String getText()
- Specified by:
getTextin interfacePOITextExtractor
-
getDocument
public HWPFOldDocument getDocument()
- Specified by:
getDocumentin interfacePOIOLE2TextExtractor- Specified by:
getDocumentin interfacePOITextExtractor
-
setCloseFilesystem
public void setCloseFilesystem(boolean doCloseFilesystem)
- Specified by:
setCloseFilesystemin interfacePOITextExtractor
-
isCloseFilesystem
public boolean isCloseFilesystem()
- Specified by:
isCloseFilesystemin interfacePOITextExtractor
-
getFilesystem
public HWPFOldDocument getFilesystem()
- Specified by:
getFilesystemin interfacePOITextExtractor
-
-