Package clips.service.mes

Source Code of clips.service.mes.DBMesImport

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package clips.service.mes;

import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.xBaseJ.micro.DBF;
import org.xBaseJ.micro.xBaseJException;

/**
*
* @author finder
*/
public class DBMesImport {
  public void dbImport(File dbFile){
    try {
      DBF dbf = new DBF(dbFile.getAbsolutePath(), "cp866");
      System.out.println("DBMesImport: parse file '" + dbFile.getName());
    }
    catch (xBaseJException ex) {
      Logger.getLogger(DBMesImport.class.getName()).log(Level.SEVERE, null, ex);
    }
    catch (IOException ex) {
      Logger.getLogger(DBMesImport.class.getName()).log(Level.SEVERE, null, ex);
    }
  }
}
TOP

Related Classes of clips.service.mes.DBMesImport

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.