Skip to content

Commit

Permalink
TIKA-4204 -- improve lookup of dataspace/storage items -- fix checkstyle
Browse files Browse the repository at this point in the history
Apologies for initially pushing this commit to main instead of an issue branch. :/

(cherry picked from commit 1c10189)
  • Loading branch information
tballison committed Feb 28, 2024
1 parent c940936 commit 7302ccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ public ChmExtractor(InputStream is) throws TikaException, IOException {
getChmLzxcResetTable().parse(dir_chunk, getChmLzxcResetTable());

setIndexOfContent(ChmCommons
.indexOfDataSpaceStorageElement(getChmDirList().getDirectoryListingEntryList(), ChmConstants.CONTENT));
.indexOfDataSpaceStorageElement(getChmDirList().getDirectoryListingEntryList(),
ChmConstants.CONTENT));
setLzxBlockOffset(
(getChmDirList().getDirectoryListingEntryList().get(getIndexOfContent())
.getOffset() + getChmItsfHeader().getDataOffset()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public void setUp() throws Exception {
ChmDirectoryListingSet chmDirListCont =
new ChmDirectoryListingSet(data, chmItsHeader, chmItspHeader);
int indexOfControlData = ChmCommons
.indexOfDataSpaceStorageElement(chmDirListCont.getDirectoryListingEntryList(), ChmConstants.CONTROL_DATA);
.indexOfDataSpaceStorageElement(chmDirListCont.getDirectoryListingEntryList(),
ChmConstants.CONTROL_DATA);

int indexOfResetTable =
ChmCommons.indexOfResetTableBlock(data, ChmConstants.LZXC.getBytes(UTF_8));
Expand Down

0 comments on commit 7302ccd

Please sign in to comment.