try to re-enable new getBlockAt code

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887828 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-03-19 21:26:30 +00:00
parent d96dd89e35
commit 4680bd516d
2 changed files with 3 additions and 2 deletions

View File

@ -86,6 +86,7 @@ public class TestAllFiles {
DirectoryScanner scanner = new DirectoryScanner();
scanner.setBasedir(ROOT_DIR);
scanner.setExcludes(SCAN_EXCLUDES);
scanner.setIncludes(new String[]{"**/unknown_properties.msg"});
scanner.scan();

View File

@ -61,12 +61,12 @@ public class POIFSMiniStore extends BlockStore {
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