ChmLzxState implements Cloneable { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("actual decoding window:=" + getWindow() + System.getProperty("line.separator")); sb.append("window size (32Kb through 2Mb):=" + getWindowSize() + System.getProperty("line.separator")); sb.append("current offset within the window:=" + getWindowPosition() + System.getProperty("line.separator")); sb.append("number of main tree elements:=" + getMainTreeElements() + System.getProperty("line.separator")); sb.append("have we started decoding at all yet?:=" + getHadStarted() + System.getProperty("line.separator")); sb.append("type of this block:=" + getBlockType() + System.getProperty("line.separator")); sb.append("uncompressed length of this block:=" + getBlockLength() + System.getProperty("line.separator")); sb.append("uncompressed bytes still left to decode:=" + getBlockRemaining() + System.getProperty("line.separator")); sb.append("the number of CFDATA blocks processed:=" + getFramesRead() + System.getProperty("line.separator")); sb.append("magic header value used for transform:=" + getIntelFileSize() + System.getProperty("line.separator")); sb.append("current offset in transform space:=" + getIntelCurrentPossition() + System.getProperty("line.separator")); sb.append("have we seen any translatable data yet?:=" + getIntelState() + System.getProperty("line.separator")); sb.append("R0 for the LRU offset system:=" + getR0() + System.getProperty("line.separator")); sb.append("R1 for the LRU offset system:=" + getR1() + System.getProperty("line.separator")); sb.append("R2 for the LRU offset system:=" + getR2() + System.getProperty("line.separator")); sb.append("main tree length:=" + getMainTreeLengtsTable().length + System.getProperty("line.separator")); sb.append("secondary tree length:=" + getLengthTreeLengtsTable().length + System.getProperty("line.separator")); return sb.toString(); } ChmLzxState(int window); @Override ChmLzxState clone(); String toString(); int getBlockType(); void setMainTreeLengtsTable(short[] mainTreeLengtsTable); short[] getMainTreeLengtsTable(); void setLengthTreeLengtsTable(short[] lengthTreeLengtsTable); short[] getLengthTreeLengtsTable();  }
@Test public void testToString() throws TikaException { if (chmLzxState == null) testChmLzxStateConstructor(); assertTrue(chmLzxState.toString().length() > 20); }