private ChmLzxcResetTable chmLzxcResetTable = null;
public void setUp() throws Exception {
byte[] data = TestParameters.chmData;
/* Creates and parses itsf header */
ChmItsfHeader chmItsfHeader = new ChmItsfHeader();
// chmItsfHeader.parse(Arrays.copyOfRange(data, 0,
// ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
chmItsfHeader.parse(ChmCommons.copyOfRange(data, 0,
ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
/* Creates and parses itsp block */
ChmItspHeader chmItspHeader = new ChmItspHeader();
// chmItspHeader.parse(Arrays.copyOfRange( data, (int)
// chmItsfHeader.getDirOffset(),
// (int) chmItsfHeader.getDirOffset()
// + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
chmItspHeader.parse(ChmCommons.copyOfRange(data,
(int) chmItsfHeader.getDirOffset(),
(int) chmItsfHeader.getDirOffset()
+ ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
/* Creating instance of ChmDirListingContainer */
ChmDirectoryListingSet chmDirListCont = new ChmDirectoryListingSet(
data, chmItsfHeader, chmItspHeader);
int indexOfControlData = chmDirListCont.getControlDataIndex();