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

com.github.vicenthy.filehelpers4j.converters.IntConverter Maven / Gradle / Ivy

Go to download

FileHelpers4J is a library that automates the tedious task of parsing and creating structured text files. It handles fixed width or delimited files with Java annotations sweetness

The newest version!
package com.github.vicenthy.filehelpers4j.converters;

public class IntConverter extends ConverterBase{
	@Override
	public Object stringToField(String from) {
		if (from != null) {
			from = from.trim();
		}
		return Integer.parseInt(from);
	}
	
	@Override
	public String fieldToString(Object from) {
		return from.toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy