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

org.sfm.csv.cell.FloatCellValueReader Maven / Gradle / Ivy

package org.sfm.csv.cell;

import org.sfm.csv.CellValueReader;
import org.sfm.csv.ParsingContext;

public class FloatCellValueReader implements CellValueReader {

	@Override
	public Float read(char[] chars, int offset, int length, ParsingContext parsingContext) {
		return new Float(parseFloat(chars, offset, length));
	}
	
	public static float parseFloat(char[] chars, int offset, int length) {
		return Float.parseFloat(StringCellValueReader.readString(chars, offset, length));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy