class BufferedElementCountingOutputStream extends OutputStream {

  @Override
  public void close() throws IOException {
    finish();
    os.close();
  }

  public  BufferedElementCountingOutputStream(OutputStream os);
    BufferedElementCountingOutputStream(OutputStream os, int bufferSize);

}