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:
parent
5fa76e4209
commit
01036a1f1e
@ -433,11 +433,7 @@ public final class HWPFDocument extends HWPFDocumentCore
|
|||||||
* separators and footnote separators.
|
* separators and footnote separators.
|
||||||
*/
|
*/
|
||||||
public Range getHeaderStoryRange() {
|
public Range getHeaderStoryRange() {
|
||||||
return new Range(
|
return getRange( SubdocumentType.HEADER );
|
||||||
_cpSplit.getHeaderStoryStart(),
|
|
||||||
_cpSplit.getHeaderStoryEnd(),
|
|
||||||
this
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -847,7 +843,14 @@ public final class HWPFDocument extends HWPFDocumentCore
|
|||||||
writeProperties(pfs);
|
writeProperties(pfs);
|
||||||
|
|
||||||
pfs.writeFilesystem(out);
|
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()
|
public byte[] getDataStream()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user