package com.qmth.teachcloud.common.util.excel.convertor.impl;

import org.apache.poi.ss.usermodel.Cell;

import com.qmth.teachcloud.common.util.excel.convertor.ValueConvertor;
import com.qmth.teachcloud.common.util.excel.model.FieldParam;

public class StringConvertor implements ValueConvertor<String> {

    public static final StringConvertor instance = new StringConvertor();

    @Override
    public String parse(String value, FieldParam param) throws Exception {
        return value;
    }

    @Override
    public void format(String object, FieldParam param, Cell cell) throws Exception {
        cell.setCellValue(object);
    }
}
