use new table streams and data streams after write()

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150458 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-24 18:35:48 +00:00
parent 1e76375420
commit 81c4f98cdd
1 changed files with 9 additions and 6 deletions

View File

@ -433,11 +433,7 @@ public final class HWPFDocument extends HWPFDocumentCore
* separators and footnote separators.
*/
public Range getHeaderStoryRange() {
return new Range(
_cpSplit.getHeaderStoryStart(),
_cpSplit.getHeaderStoryEnd(),
this
);
return getRange( SubdocumentType.HEADER );
}
/**
@ -847,7 +843,14 @@ public final class HWPFDocument extends HWPFDocumentCore
writeProperties(pfs);
pfs.writeFilesystem(out);
}
/*
* since we updated all references in FIB and etc, using new arrays to
* access data
*/
this._tableStream = tableStream.toByteArray();
this._dataStream = dataBuf;
}
public byte[] getDataStream()
{