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