commit | 4680bd516de970241fc316a809125fd3ac274314 | [log] [tgz] |
---|---|---|
author | PJ Fanning <fanningpj@apache.org> | Fri Mar 19 21:26:30 2021 +0000 |
committer | PJ Fanning <fanningpj@apache.org> | Fri Mar 19 21:26:30 2021 +0000 |
tree | acc44654909a1951c57edf60fcf5a967d6ad2e36 | |
parent | d96dd89e3541a4a3820d4cd559d43b2375c7fd5d [diff] |
try to re-enable new getBlockAt code git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887828 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/integrationtest/org/apache/poi/stress/TestAllFiles.java b/src/integrationtest/org/apache/poi/stress/TestAllFiles.java index 55777d1..4e913e5 100644 --- a/src/integrationtest/org/apache/poi/stress/TestAllFiles.java +++ b/src/integrationtest/org/apache/poi/stress/TestAllFiles.java
@@ -86,6 +86,7 @@ DirectoryScanner scanner = new DirectoryScanner(); scanner.setBasedir(ROOT_DIR); scanner.setExcludes(SCAN_EXCLUDES); + scanner.setIncludes(new String[]{"**/unknown_properties.msg"}); scanner.scan();
diff --git a/src/java/org/apache/poi/poifs/filesystem/POIFSMiniStore.java b/src/java/org/apache/poi/poifs/filesystem/POIFSMiniStore.java index 9df110e..db49e5b 100644 --- a/src/java/org/apache/poi/poifs/filesystem/POIFSMiniStore.java +++ b/src/java/org/apache/poi/poifs/filesystem/POIFSMiniStore.java
@@ -61,12 +61,12 @@ int bigBlockOffset = byteOffset % _filesystem.getBigBlockSize(); // Now locate the data block for it - Iterator<ByteBuffer> it = _mini_stream.getBlockIterator(); + Iterator<Integer> it = _mini_stream.getBlockOffsetIterator(); for (int i = 0; i < bigBlockNumber; i++) { it.next(); } - ByteBuffer dataBlock = it.next(); + ByteBuffer dataBlock = _filesystem.getBlockAt(it.next()); assert(dataBlock != null); // Position ourselves, and take a slice