protected void close(boolean cerrarScript) throws Exception {
   String nombre = "BLOQUE " + this.cuentaBloques;
   if (cerrarScript) {
     logger.info("AGREGANDO SCRIPT A EJECUCION: " + this.cuentaBloques);
     addScript(nombre, this.script);
     this.script = null;
   }
   super.close(cerrarScript);
 }
  /*
   * (sin Javadoc)
   *
   * @see com.epa.sincronizador.datafile.CargarDataFile#printToWriter(java.io.PrintWriter,
   *      java.lang.String) @param writer @param line
   * @since 19/01/2005
   */
  protected void printToWriter(PrintWriter writer, String line) throws Exception {
    super.printToWriter(writer, line);

    if (this.script == null) {
      this.script = new SQLScript();
    }
    this.script.addSentencia(line);
    if (line.endsWith(";")) {
      this.cuentaBloques++;
    }
  }
 /*
  * (sin Javadoc)
  *
  * @see com.epa.sincronizador.datafile.CargarDataFile#commonClose()
  *
  * @since 24/01/2005
  */
 protected void close(boolean cerrarScript) throws Exception {
   addFile2Script();
   if (script != null) {
     if (cerrarScript) {
       endScript();
       addScript("DATAFILE: " + this.getFile().getName(), this.script);
       logger.info("Script Asignado: " + this.script);
       this.script = null;
     }
     super.close(cerrarScript);
   }
 }
 /*
  * (sin Javadoc)
  *
  * @see com.epa.sincronizador.datafile.CargarDataFile#printToWriter(java.io.PrintWriter,
  *      java.lang.String) @param writer @param line
  * @since 24/01/2005
  */
 protected synchronized void printToWriter(PrintWriter writer, String line) throws Exception {
   if (line != null) {
     if (this.getCampos() == null) {
       this.setCampos(line.trim().replace('\t', ','));
       if (logger.isInfoEnabled()) {
         logger.info("Asignado campos: " + this.getCampos());
       }
     } else {
       super.printToWriter(writer, line);
     }
   }
 }