// section properties, and we're trying to decode them as if they
// were the new ones, we sometimes "need" more data than we have.
// As a workaround, have a few extra 0 bytes on the end!
- byte[] buf = new byte[sepxSize+4];
- fileOffset += 4;
+ byte[] buf = new byte[sepxSize+2];
+ fileOffset += LittleEndian.SHORT_SIZE;
System.arraycopy(documentStream, fileOffset, buf, 0, buf.length);
_sections.add(new SEPX(sed, startAt, endAt, charConv, buf));
}
assertEquals("\r\n", tp[5]);
assertEquals("Last (4th) paragraph.\r\n", tp[6]);
}
-
- public void testWord95err() throws Exception {
- // Can work with the special one
- Word6Extractor w6e = new Word6Extractor(
- POIDataSamples.getDocumentInstance().openResourceAsStream("word95err.doc")
- );
- String text = w6e.getText();
-
- assertTrue(text.contains("subject"));
- }
-
+
public void testWord6() throws Exception {
// Too old for the default
try {