docs: public void flush() throws IOException {
      checkClosed();
      try {
        if (bpos > 0) {
          lo.write(buf, 0, bpos);
        }
        bpos = 0;
      } catch (SQLException se) {
        throw new IOException(se.toString());
      }
    }