private void internalReset() throws IOException { if (needsReset) { needsReset = false; writeStreamHeader(); this.output = new CBZip2OutputStream(out); } }