All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fudaa.dodico.rubar.io.RubarDZFFileFormat Maven / Gradle / Ivy

package org.fudaa.dodico.rubar.io;

import java.io.File;

import org.fudaa.ctulu.CtuluIOOperationSynthese;
import org.fudaa.ctulu.ProgressionInterface;
import org.fudaa.ctulu.fileformat.FileFormatUnique;
import org.fudaa.ctulu.fileformat.FileReadOperationAbstract;
import org.fudaa.ctulu.fileformat.FileWriteOperationAbstract;
import org.fudaa.dodico.h2d.resource.H2dResource;

/**
 * 
 * @author CANEL Christophe (Genesis)
 *
 */
public class RubarDZFFileFormat extends FileFormatUnique {
  /**
   * Initialise les donnees.
   */
  public RubarDZFFileFormat() {
    super(1);
    extensions_ = new String[] { "dzf"};
    super.description_ = H2dResource.getS("Diff?rences de cotes de fond entre deux temps (version avec transport)");
    super.id_ = "RUBAR_DZF";
    super.nom_ = "Rubar dzf";
  }

  /**
   * @see org.fudaa.ctulu.fileformat.FileFormatVersion#createReader()
   */
  @Override
  public FileReadOperationAbstract createReader(){
    return new RubarDZFReader();
  }

  /**
   * @see org.fudaa.ctulu.fileformat.FileFormatVersion#createWriter()
   */
  @Override
  public FileWriteOperationAbstract createWriter(){
    return null;
  }

  /**
   * @param f
   * @param prog
   * @param nbNoeuds
   * @return la synthese de l'operation
   */
  public CtuluIOOperationSynthese read(final File f, final ProgressionInterface prog, final int nbNoeuds){
    final RubarDZFReader i = new RubarDZFReader();
    i.setNbNoeuds(nbNoeuds);
    final CtuluIOOperationSynthese r = i.read(f, prog);
    i.setProgressReceiver(null);
    return r;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy