@Test public void testToString() { assertTrue(chmItspHeader.toString().contains( TestParameters.VP_ISTP_SIGNATURE)); }
public String toString() { StringBuilder sb = new StringBuilder(); sb.append("[ signature:=" + new String(getSignature(), UTF_8) + System.getProperty("line.separator")); sb.append("version:=\t" + getVersion() + System.getProperty("line.separator")); sb.append("header_len:=\t" + getHeader_len() + System.getProperty("line.separator")); sb.append("unknown_00c:=\t" + getUnknown_000c() + System.getProperty("line.separator")); sb.append("block_len:=\t" + getBlock_len() + " [directory chunk size]" + System.getProperty("line.separator")); sb.append("blockidx_intvl:=" + getBlockidx_intvl() + ", density of quickref section, usually 2" + System.getProperty("line.separator")); sb.append("index_depth:=\t" + getIndex_depth() + ", depth of the index tree - 1 there is no index, 2 if there is one level of PMGI chunk" + System.getProperty("line.separator")); sb.append("index_root:=\t" + getIndex_root() + ", chunk number of root index chunk, -1 if there is none" + System.getProperty("line.separator")); sb.append("index_head:=\t" + getIndex_head() + ", chunk number of first PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("unknown_0024:=\t" + getUnknown_0024() + ", chunk number of last PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("num_blocks:=\t" + getNum_blocks() + ", -1 (unknown)" + System.getProperty("line.separator")); sb.append("unknown_002c:=\t" + getUnknown_002c() + ", number of directory chunks (total)" + System.getProperty("line.separator")); sb.append("lang_id:=\t" + getLang_id() + " - " + ChmCommons.getLanguage(getLang_id()) + System.getProperty("line.separator")); sb.append("system_uuid:=" + getSystem_uuid() + System.getProperty("line.separator")); sb.append("unknown_0044:=" + getUnknown_0044() + " ]"); return sb.toString(); }
ChmItspHeader implements ChmAccessor<ChmItspHeader> { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("[ signature:=" + new String(getSignature(), UTF_8) + System.getProperty("line.separator")); sb.append("version:=\t" + getVersion() + System.getProperty("line.separator")); sb.append("header_len:=\t" + getHeader_len() + System.getProperty("line.separator")); sb.append("unknown_00c:=\t" + getUnknown_000c() + System.getProperty("line.separator")); sb.append("block_len:=\t" + getBlock_len() + " [directory chunk size]" + System.getProperty("line.separator")); sb.append("blockidx_intvl:=" + getBlockidx_intvl() + ", density of quickref section, usually 2" + System.getProperty("line.separator")); sb.append("index_depth:=\t" + getIndex_depth() + ", depth of the index tree - 1 there is no index, 2 if there is one level of PMGI chunk" + System.getProperty("line.separator")); sb.append("index_root:=\t" + getIndex_root() + ", chunk number of root index chunk, -1 if there is none" + System.getProperty("line.separator")); sb.append("index_head:=\t" + getIndex_head() + ", chunk number of first PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("unknown_0024:=\t" + getUnknown_0024() + ", chunk number of last PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("num_blocks:=\t" + getNum_blocks() + ", -1 (unknown)" + System.getProperty("line.separator")); sb.append("unknown_002c:=\t" + getUnknown_002c() + ", number of directory chunks (total)" + System.getProperty("line.separator")); sb.append("lang_id:=\t" + getLang_id() + " - " + ChmCommons.getLanguage(getLang_id()) + System.getProperty("line.separator")); sb.append("system_uuid:=" + getSystem_uuid() + System.getProperty("line.separator")); sb.append("unknown_0044:=" + getUnknown_0044() + " ]"); return sb.toString(); } }
ChmItspHeader implements ChmAccessor<ChmItspHeader> { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("[ signature:=" + new String(getSignature(), UTF_8) + System.getProperty("line.separator")); sb.append("version:=\t" + getVersion() + System.getProperty("line.separator")); sb.append("header_len:=\t" + getHeader_len() + System.getProperty("line.separator")); sb.append("unknown_00c:=\t" + getUnknown_000c() + System.getProperty("line.separator")); sb.append("block_len:=\t" + getBlock_len() + " [directory chunk size]" + System.getProperty("line.separator")); sb.append("blockidx_intvl:=" + getBlockidx_intvl() + ", density of quickref section, usually 2" + System.getProperty("line.separator")); sb.append("index_depth:=\t" + getIndex_depth() + ", depth of the index tree - 1 there is no index, 2 if there is one level of PMGI chunk" + System.getProperty("line.separator")); sb.append("index_root:=\t" + getIndex_root() + ", chunk number of root index chunk, -1 if there is none" + System.getProperty("line.separator")); sb.append("index_head:=\t" + getIndex_head() + ", chunk number of first PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("unknown_0024:=\t" + getUnknown_0024() + ", chunk number of last PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("num_blocks:=\t" + getNum_blocks() + ", -1 (unknown)" + System.getProperty("line.separator")); sb.append("unknown_002c:=\t" + getUnknown_002c() + ", number of directory chunks (total)" + System.getProperty("line.separator")); sb.append("lang_id:=\t" + getLang_id() + " - " + ChmCommons.getLanguage(getLang_id()) + System.getProperty("line.separator")); sb.append("system_uuid:=" + getSystem_uuid() + System.getProperty("line.separator")); sb.append("unknown_0044:=" + getUnknown_0044() + " ]"); return sb.toString(); } ChmItspHeader(); }
ChmItspHeader implements ChmAccessor<ChmItspHeader> { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("[ signature:=" + new String(getSignature(), UTF_8) + System.getProperty("line.separator")); sb.append("version:=\t" + getVersion() + System.getProperty("line.separator")); sb.append("header_len:=\t" + getHeader_len() + System.getProperty("line.separator")); sb.append("unknown_00c:=\t" + getUnknown_000c() + System.getProperty("line.separator")); sb.append("block_len:=\t" + getBlock_len() + " [directory chunk size]" + System.getProperty("line.separator")); sb.append("blockidx_intvl:=" + getBlockidx_intvl() + ", density of quickref section, usually 2" + System.getProperty("line.separator")); sb.append("index_depth:=\t" + getIndex_depth() + ", depth of the index tree - 1 there is no index, 2 if there is one level of PMGI chunk" + System.getProperty("line.separator")); sb.append("index_root:=\t" + getIndex_root() + ", chunk number of root index chunk, -1 if there is none" + System.getProperty("line.separator")); sb.append("index_head:=\t" + getIndex_head() + ", chunk number of first PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("unknown_0024:=\t" + getUnknown_0024() + ", chunk number of last PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("num_blocks:=\t" + getNum_blocks() + ", -1 (unknown)" + System.getProperty("line.separator")); sb.append("unknown_002c:=\t" + getUnknown_002c() + ", number of directory chunks (total)" + System.getProperty("line.separator")); sb.append("lang_id:=\t" + getLang_id() + " - " + ChmCommons.getLanguage(getLang_id()) + System.getProperty("line.separator")); sb.append("system_uuid:=" + getSystem_uuid() + System.getProperty("line.separator")); sb.append("unknown_0044:=" + getUnknown_0044() + " ]"); return sb.toString(); } ChmItspHeader(); String toString(); byte[] getSignature(); int getVersion(); int getHeader_len(); int getUnknown_000c(); long getBlock_len(); int getBlockidx_intvl(); int getIndex_depth(); int getIndex_root(); int getIndex_head(); int getUnknown_0024(); long getNum_blocks(); int getUnknown_002c(); long getLang_id(); byte[] getSystem_uuid(); byte[] getUnknown_0044(); void parse(byte[] data, ChmItspHeader chmItspHeader); }
ChmItspHeader implements ChmAccessor<ChmItspHeader> { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("[ signature:=" + new String(getSignature(), UTF_8) + System.getProperty("line.separator")); sb.append("version:=\t" + getVersion() + System.getProperty("line.separator")); sb.append("header_len:=\t" + getHeader_len() + System.getProperty("line.separator")); sb.append("unknown_00c:=\t" + getUnknown_000c() + System.getProperty("line.separator")); sb.append("block_len:=\t" + getBlock_len() + " [directory chunk size]" + System.getProperty("line.separator")); sb.append("blockidx_intvl:=" + getBlockidx_intvl() + ", density of quickref section, usually 2" + System.getProperty("line.separator")); sb.append("index_depth:=\t" + getIndex_depth() + ", depth of the index tree - 1 there is no index, 2 if there is one level of PMGI chunk" + System.getProperty("line.separator")); sb.append("index_root:=\t" + getIndex_root() + ", chunk number of root index chunk, -1 if there is none" + System.getProperty("line.separator")); sb.append("index_head:=\t" + getIndex_head() + ", chunk number of first PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("unknown_0024:=\t" + getUnknown_0024() + ", chunk number of last PMGL (listing) chunk" + System.getProperty("line.separator")); sb.append("num_blocks:=\t" + getNum_blocks() + ", -1 (unknown)" + System.getProperty("line.separator")); sb.append("unknown_002c:=\t" + getUnknown_002c() + ", number of directory chunks (total)" + System.getProperty("line.separator")); sb.append("lang_id:=\t" + getLang_id() + " - " + ChmCommons.getLanguage(getLang_id()) + System.getProperty("line.separator")); sb.append("system_uuid:=" + getSystem_uuid() + System.getProperty("line.separator")); sb.append("unknown_0044:=" + getUnknown_0044() + " ]"); return sb.toString(); } ChmItspHeader(); String toString(); byte[] getSignature(); int getVersion(); int getHeader_len(); int getUnknown_000c(); long getBlock_len(); int getBlockidx_intvl(); int getIndex_depth(); int getIndex_root(); int getIndex_head(); int getUnknown_0024(); long getNum_blocks(); int getUnknown_002c(); long getLang_id(); byte[] getSystem_uuid(); byte[] getUnknown_0044(); void parse(byte[] data, ChmItspHeader chmItspHeader);  }