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

org.simpleflatmapper.csv.impl.CellValueReaderToStringReaderAdapter Maven / Gradle / Ivy

package org.simpleflatmapper.csv.impl;

import org.simpleflatmapper.csv.CellValueReader;
import org.simpleflatmapper.csv.ParsingContext;
import org.simpleflatmapper.lightningcsv.StringReader;

public class CellValueReaderToStringReaderAdapter implements CellValueReader {
    private final StringReader delegate;

    public CellValueReaderToStringReaderAdapter(StringReader delegate) {
        this.delegate = delegate;
    }

    @Override
    public T read(char[] chars, int offset, int length, ParsingContext parsingContext) {
        return delegate.read(new String(chars, offset, length));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy