public void dump(Object o) { Set<Object> cache = CollectionFactory.newHashSet(); w.write("("); dumpObject(o, cache); w.write(")"); w.newline(0); try { w.flush(); } catch (IOException e) { } }
/** * Finishes the compression by writing out stop code and by flushing anything that haven't been * written yet. * * @throws IOException if anything goes wrong */ public void finish() throws IOException { writer.write(prefixCode); writer.write(StringTable.STOP_CODE); writer.flush(); }
private void writeClassEnd(CodeWriter writer) throws Exception { writer.outdent(); writer.fwrite("}\n"); writer.flush(); writer.close(); }