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

org.simpleflatmapper.converter.joda.impl.JodaReadablePartialToStringConverter Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 6.0.7
Show newest version
package org.simpleflatmapper.converter.joda.impl;

import org.joda.time.ReadablePartial;
import org.joda.time.format.DateTimeFormatter;
import org.simpleflatmapper.converter.Converter;

import java.io.IOException;


public class JodaReadablePartialToStringConverter implements Converter {

    private final DateTimeFormatter dateTimeFormatter;

    public JodaReadablePartialToStringConverter(DateTimeFormatter dateTimeFormatter) {
        this.dateTimeFormatter = dateTimeFormatter;
    }

    @Override
    public String convert(ReadablePartial in) throws Exception {
        return dateTimeFormatter.print(in);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy