diff options
author | Nick Burch <nick@apache.org> | 2014-04-24 17:44:10 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2014-04-24 17:44:10 +0000 |
commit | 9839d90e797dbd8f2d861be1aa52fbd8a32e2d45 (patch) | |
tree | 50ad71a38db0bf885dd9d0c397375fb6c7337a23 /src/java/org/apache/poi/poifs | |
parent | ea3d7cd99b42a1442bee235edf4ee14aef1c6c27 (diff) | |
download | poi-9839d90e797dbd8f2d861be1aa52fbd8a32e2d45.tar.gz poi-9839d90e797dbd8f2d861be1aa52fbd8a32e2d45.zip |
More NPOIFS write testing, and fix a problem with writing xbat details out
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1589806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/poifs')
-rw-r--r-- | src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java b/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java index 53cb4b3655..06b1fd19f7 100644 --- a/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java +++ b/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java @@ -729,6 +729,11 @@ public class NPOIFSFileSystem extends BlockStore ByteBuffer block = getBlockAt(bat.getOurBlockIndex()); BlockAllocationTableWriter.writeBlock(bat, block); } + // XBats + for(BATBlock bat : _xbat_blocks) { + ByteBuffer block = getBlockAt(bat.getOurBlockIndex()); + BlockAllocationTableWriter.writeBlock(bat, block); + } // SBATs _mini_store.syncWithDataSource(); |