private void checkClosed() throws IOException {

    if (isClosed || clob.isClosed()) {
      throw new IOException(Error.getMessage(ErrorCode.BLOB_STREAM_IS_CLOSED));
    }
  }