@Override public void closeWrite() throws IOException { wb.close(); // when wb is fully drained and written, we'll call closeW() }