package org.simpleflatmapper.csv.impl.cellreader;
import org.simpleflatmapper.csv.CellValueReader;
import org.simpleflatmapper.csv.ParsingContext;
public class BoxedShortCellValueReader implements ShortCellValueReader {
private final CellValueReader<Short> reader;
public BoxedShortCellValueReader(CellValueReader<Short> customReader) {
this.reader = customReader;
}
@Override
public short readShort(char[] chars, int offset, int length, ParsingContext parsingContext) {
return read(chars, offset, length, parsingContext);
}
@Override
public Short read(char[] chars, int offset, int length, ParsingContext parsingContext) {
return reader.read(chars, offset, length, parsingContext);
}
@Override
public String toString() {
return "BoxedShortCellValueReader{" +
"reader=" + reader +
'}';
}
}