com.pig4cloud.plugin.excel.handler.SheetWriteHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-spring-boot-starter Show documentation
Show all versions of excel-spring-boot-starter Show documentation
easy and high performance excel
package com.pig4cloud.plugin.excel.handler;
import com.pig4cloud.plugin.excel.annotation.ResponseExcel;
import javax.servlet.http.HttpServletResponse;
/**
* @author lengleng
* @date 2020/3/29
*
* sheet 写出处理器
*/
public interface SheetWriteHandler {
/**
* 是否支持
* @param obj
* @return
*/
boolean support(Object obj);
/**
* 校验
* @param responseExcel 注解
*/
void check(ResponseExcel responseExcel);
/**
* 返回的对象
* @param o obj
* @param response 输出对象
* @param responseExcel 注解
*/
void export(Object o, HttpServletResponse response, ResponseExcel responseExcel);
/**
* 写成对象
* @param o obj
* @param response 输出对象
* @param responseExcel 注解
*/
void write(Object o, HttpServletResponse response, ResponseExcel responseExcel);
}