// Path: dbase/src/main/java/org/xBaseJ/xBaseJException.java
// public class xBaseJException extends Exception {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	public xBaseJException() {
// 		super();
// 	}
// 
// 	public xBaseJException(String s) {
// 		super(s);
// 	}
// }


import java.io.IOException;
import java.nio.ByteBuffer;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import org.xBaseJ.xBaseJException;
/**
 * eobjects.org MetaModel
 * Copyright (C) 2010 eobjects.org
 *
 * This copyrighted material is made available to anyone wishing to use, modify,
 * copy, or redistribute it subject to the terms and conditions of the GNU
 * Lesser General Public License, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this distribution; if not, write to:
 * Free Software Foundation, Inc.
 * 51 Franklin Street, Fifth Floor
 * Boston, MA  02110-1301  USA
 */

package org.xBaseJ.fields;



/**
 * This class is courtesy of the xBaseJ project: http://xbasej.sourceforge.net/
 * 
 * Copyright 1997-2007 - American Coders, LTD - Raleigh NC USA
 * 
 * <pre>
 * American Coders, Ltd
 * P. O. Box 97462
 * Raleigh, NC  27615  USA
 * 1-919-846-2014
 * http://www.americancoders.com
 * </pre>
 * 
 * @author Joe McVerry, American Coders Ltd.
 */
public class NumField extends Field {

	private static final long serialVersionUID = 1L;
	private byte decPosition = 0;
	private static DecimalFormatSymbols dfs = new DecimalFormatSymbols();
	private static char decimalSeparator = dfs.getDecimalSeparator();

	public NumField() {
		super();
	}

	public Object clone() throws CloneNotSupportedException {
		NumField tField = (NumField) super.clone();
		tField.name = new String(name);
		tField.nength = nength;
		tField.decPosition = decPosition;
		return tField;
	}

	public NumField(String iName, int iLength, int idecPosition,
// Path: dbase/src/main/java/org/xBaseJ/xBaseJException.java
// public class xBaseJException extends Exception {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	public xBaseJException() {
// 		super();
// 	}
// 
// 	public xBaseJException(String s) {
// 		super(s);
// 	}
// }


// Path: dbase/src/main/java/org/xBaseJ/fields/NumField.java
import java.io.IOException;
import java.nio.ByteBuffer;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import org.xBaseJ.xBaseJException;

/**
 * eobjects.org MetaModel
 * Copyright (C) 2010 eobjects.org
 *
 * This copyrighted material is made available to anyone wishing to use, modify,
 * copy, or redistribute it subject to the terms and conditions of the GNU
 * Lesser General Public License, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this distribution; if not, write to:
 * Free Software Foundation, Inc.
 * 51 Franklin Street, Fifth Floor
 * Boston, MA  02110-1301  USA
 */

package org.xBaseJ.fields;



/**
 * This class is courtesy of the xBaseJ project: http://xbasej.sourceforge.net/
 * 
 * Copyright 1997-2007 - American Coders, LTD - Raleigh NC USA
 * 
 * <pre>
 * American Coders, Ltd
 * P. O. Box 97462
 * Raleigh, NC  27615  USA
 * 1-919-846-2014
 * http://www.americancoders.com
 * </pre>
 * 
 * @author Joe McVerry, American Coders Ltd.
 */
public class NumField extends Field {

	private static final long serialVersionUID = 1L;
	private byte decPosition = 0;
	private static DecimalFormatSymbols dfs = new DecimalFormatSymbols();
	private static char decimalSeparator = dfs.getDecimalSeparator();

	public NumField() {
		super();
	}

	public Object clone() throws CloneNotSupportedException {
		NumField tField = (NumField) super.clone();
		tField.name = new String(name);
		tField.nength = nength;
		tField.decPosition = decPosition;
		return tField;
	}

	public NumField(String iName, int iLength, int idecPosition,
			ByteBuffer inBuffer) throws xBaseJException {