]> source.dussan.org Git - poi.git/commit
Resolve bug #49139 - don't assume that the block size is always 512 bytes. Instead...
authorNick Burch <nick@apache.org>
Sun, 25 Apr 2010 17:35:56 +0000 (17:35 +0000)
committerNick Burch <nick@apache.org>
Sun, 25 Apr 2010 17:35:56 +0000 (17:35 +0000)
commit7f12b6ff534f0c9f8650ab199ed0b9d7191fc87a
tree479157ab3724eb1db6f4890bd38fd853d752a3d6
parente38be4e0a7c56df7ae7ccddb0586e3e92d9ccd1d
Resolve bug #49139 - don't assume that the block size is always 512 bytes. Instead of hard coding this value in, pass around the new POIFSBigBlockSize object that holds the size and various helper subsizes. Should now be possible to open 4k block files without error.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@937834 13f79535-47bb-0310-9956-ffa450edef68
41 files changed:
src/java/org/apache/poi/poifs/common/POIFSBigBlockSize.java [new file with mode: 0644]
src/java/org/apache/poi/poifs/common/POIFSConstants.java
src/java/org/apache/poi/poifs/dev/POIFSHeaderDumper.java [new file with mode: 0644]
src/java/org/apache/poi/poifs/eventfilesystem/POIFSReader.java
src/java/org/apache/poi/poifs/filesystem/POIFSDocument.java
src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java
src/java/org/apache/poi/poifs/property/PropertyTable.java
src/java/org/apache/poi/poifs/storage/BATBlock.java
src/java/org/apache/poi/poifs/storage/BigBlock.java
src/java/org/apache/poi/poifs/storage/BlockAllocationTableReader.java
src/java/org/apache/poi/poifs/storage/BlockAllocationTableWriter.java
src/java/org/apache/poi/poifs/storage/DocumentBlock.java
src/java/org/apache/poi/poifs/storage/HeaderBlockConstants.java
src/java/org/apache/poi/poifs/storage/HeaderBlockReader.java
src/java/org/apache/poi/poifs/storage/HeaderBlockWriter.java
src/java/org/apache/poi/poifs/storage/PropertyBlock.java
src/java/org/apache/poi/poifs/storage/RawDataBlock.java
src/java/org/apache/poi/poifs/storage/RawDataBlockList.java
src/java/org/apache/poi/poifs/storage/SmallBlockTableReader.java
src/java/org/apache/poi/poifs/storage/SmallBlockTableWriter.java
src/java/org/apache/poi/poifs/storage/SmallDocumentBlock.java
src/java/org/apache/poi/poifs/storage/SmallDocumentBlockList.java
src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
src/scratchpad/src/org/apache/poi/hwpf/model/CHPBinTable.java
src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java
src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java
src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java
src/testcases/org/apache/poi/poifs/property/TestPropertyTable.java
src/testcases/org/apache/poi/poifs/storage/LocalRawDataBlockList.java
src/testcases/org/apache/poi/poifs/storage/TestBATBlock.java
src/testcases/org/apache/poi/poifs/storage/TestBlockAllocationTableReader.java
src/testcases/org/apache/poi/poifs/storage/TestBlockAllocationTableWriter.java
src/testcases/org/apache/poi/poifs/storage/TestBlockListImpl.java
src/testcases/org/apache/poi/poifs/storage/TestDocumentBlock.java
src/testcases/org/apache/poi/poifs/storage/TestHeaderBlockWriter.java
src/testcases/org/apache/poi/poifs/storage/TestPropertyBlock.java
src/testcases/org/apache/poi/poifs/storage/TestRawDataBlockList.java
src/testcases/org/apache/poi/poifs/storage/TestSmallBlockTableReader.java
src/testcases/org/apache/poi/poifs/storage/TestSmallBlockTableWriter.java
src/testcases/org/apache/poi/poifs/storage/TestSmallDocumentBlock.java
src/testcases/org/apache/poi/poifs/storage/TestSmallDocumentBlockList.java