public MainStreamReader(ParserContext into) {
this.into = into;
}
public void processPOIFSReaderEvent(POIFSReaderEvent event) {
DataSource ftk = null;
try {
ftk = new DocumentDataSource(event.getStream());
into.fireStartParseEvent("header");
WordUtils.getHeader(ftk, into);
into.fireEndParseEvent("header");
FIB oFib = new FIB(langMap, Offset_To_DOP);
into.fireStartParseEvent("FIB");
oFib.read(ftk, into);
into.fireEndParseEvent("FIB");
// processText(oFib,ftk, into);
} catch (Exception ex) {
ex.printStackTrace();
} finally {
if (ftk != null) {
try {
ftk.close();
} catch (Exception ex) {
;
}
}
}