Hello.
Trying to get a text file DOC:
File docFile = new File (pathToFile);
fis = new FileInputStream (docFile.getAbsolutePath ());
POIFSFileSystem pfs = new POIFSFileSystem (fis);
HWPFOldDocument doc = new HWPFOldDocument (pfs);
Word6Extractor docExtractor = new Word6Extractor (doc);
In carrying out an error:
c: / temp/Mater_Lector/and12.doc application / msword
java.lang.IllegalStateException: Told we're for characters 0 - 173
225, but actually covers 173,211 characters!
at org.apache.poi.hwpf.model.TextPiece. <init> (TextPiece.java: 50)
at org.apache.poi.hwpf.model.TextPieceTable. <init>
(TextPieceTable.java: 95)
at org.apache.poi.hwpf.model.ComplexFileTable. <init>
(ComplexFileTable.java: 54)
at org.apache.poi.hwpf.HWPFOldDocument. <init>
(HWPFOldDocument.java: 68)
at org.apache.poi.hwpf.HWPFOldDocument. <init>
(HWPFOldDocument.java: 42)
at com.google.code.ftspc.lector.parsers.POI.DocParser.parseWord6
(DocParser.java: 60)
What's wrong?
File, which I tried to parse attached.
Sincerely, Arthur.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]