mirror of https://github.com/apache/poi.git
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:
parent
d96dd89e35
commit
4680bd516d
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue