提交 4318be57 编写于 作者: Z zhuangjiaju

优化读写逻辑

上级 395c3d23
language: java
jdk: oraclejdk8
jdk: openjdk8
cache:
directories:
- $HOME/.m2
......
......@@ -7,13 +7,13 @@ import com.alibaba.excel.read.metadata.ReadSheet;
/**
* Excel file Executor
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public interface ExcelExecutor {
/**
* Returns the actual sheet in excel
*
*
* @return
*/
List<ReadSheet> sheetList();
......
......@@ -6,8 +6,8 @@ import com.alibaba.excel.cache.ReadCache;
/**
* Sax read sharedStringsTable.xml
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class SharedStringsTableHandler extends DefaultHandler {
private static final String T_TAG = "t";
......
......@@ -8,8 +8,8 @@ import java.lang.annotation.Target;
/**
* Ignore convert excel
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
......
......@@ -11,8 +11,8 @@ import java.lang.annotation.Target;
*
* <li>write: It can be used on classes {@link java.util.Date}
* <li>read: It can be used on classes {@link String}
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
......
......@@ -12,8 +12,8 @@ import java.math.RoundingMode;
*
* <li>write: It can be used on classes that inherit {@link Number}
* <li>read: It can be used on classes {@link String}
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
......@@ -30,7 +30,7 @@ public @interface NumberFormat {
/**
* Rounded by default
*
*
* @return
*/
RoundingMode roundingMode() default RoundingMode.HALF_UP;
......
......@@ -9,7 +9,7 @@ import java.lang.annotation.Target;
/**
* Set the width of the table
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
@Target({ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
......
......@@ -8,8 +8,8 @@ import java.lang.annotation.Target;
/**
* Set the height of each table
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
......@@ -20,7 +20,7 @@ public @interface ContentRowHeight {
* Set the content height
* <p>
* -1 mean the auto set height
*
*
* @return
*/
short value() default -1;
......
......@@ -8,8 +8,8 @@ import java.lang.annotation.Target;
/**
* Set the height of each table
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
......
......@@ -25,7 +25,7 @@ import com.alibaba.excel.util.StringUtils;
/**
* Default cache
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class Ehcache implements ReadCache {
......
......@@ -6,10 +6,10 @@ import java.util.Map;
import com.alibaba.excel.context.AnalysisContext;
/**
*
*
* Putting temporary data directly into a map is a little more efficient but very memory intensive
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class MapCache implements ReadCache {
private Map<Integer, String> cache = new HashMap<Integer, String>();
......
......@@ -4,28 +4,28 @@ import com.alibaba.excel.context.AnalysisContext;
/**
* Read cache
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public interface ReadCache {
/**
* Initialize cache
*
*
* @param analysisContext
*/
void init(AnalysisContext analysisContext);
/**
* Automatically generate the key and put it in the cache.Key start from 0
*
*
* @param value
*/
void put(String value);
/**
* Get value
*
*
* @param key
* @return
*/
......
......@@ -8,7 +8,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* An empty converter.It's automatically converted by type.
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class AutoConverter implements Converter {
......
......@@ -4,8 +4,8 @@ import com.alibaba.excel.enums.CellDataTypeEnum;
/**
* Converter unique key
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class ConverterKeyBuild {
public static String buildKey(Class clazz) {
......
......@@ -37,7 +37,7 @@ import com.alibaba.excel.converters.string.StringStringConverter;
/**
* Load default handler
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class DefaultConverterLoader {
/**
......
......@@ -11,7 +11,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* BigDecimal and boolean converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class BigDecimalBooleanConverter implements Converter<BigDecimal> {
......
......@@ -11,7 +11,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* BigDecimal and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class BigDecimalNumberConverter implements Converter<BigDecimal> {
......
......@@ -13,7 +13,7 @@ import com.alibaba.excel.util.NumberUtils;
/**
* BigDecimal and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class BigDecimalStringConverter implements Converter<BigDecimal> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Boolean and boolean converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class BooleanBooleanConverter implements Converter<Boolean> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Boolean and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class BooleanNumberConverter implements Converter<Boolean> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Boolean and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class BooleanStringConverter implements Converter<Boolean> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Byte and boolean converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ByteBooleanConverter implements Converter<Byte> {
private static final Byte ONE = (byte)1;
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Byte and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ByteNumberConverter implements Converter<Byte> {
......
......@@ -12,7 +12,7 @@ import com.alibaba.excel.util.NumberUtils;
/**
* Byte and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ByteStringConverter implements Converter<Byte> {
......
......@@ -13,7 +13,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Date and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class DateNumberConverter implements Converter<Date> {
......
......@@ -13,7 +13,7 @@ import com.alibaba.excel.util.DateUtils;
/**
* Date and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class DateStringConverter implements Converter<Date> {
@Override
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Double and boolean converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class DoubleBooleanConverter implements Converter<Double> {
private static final Double ONE = 1.0;
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Double and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class DoubleNumberConverter implements Converter<Double> {
......
......@@ -12,7 +12,7 @@ import com.alibaba.excel.util.NumberUtils;
/**
* Double and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class DoubleStringConverter implements Converter<Double> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Float and boolean converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class FloatBooleanConverter implements Converter<Float> {
private static final Float ONE = (float)1.0;
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Float and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class FloatNumberConverter implements Converter<Float> {
......
......@@ -12,7 +12,7 @@ import com.alibaba.excel.util.NumberUtils;
/**
* Float and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class FloatStringConverter implements Converter<Float> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Integer and boolean converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class IntegerBooleanConverter implements Converter<Integer> {
private static final Integer ONE = 1;
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Integer and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class IntegerNumberConverter implements Converter<Integer> {
......
......@@ -12,7 +12,7 @@ import com.alibaba.excel.util.NumberUtils;
/**
* Integer and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class IntegerStringConverter implements Converter<Integer> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Long and boolean converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class LongBooleanConverter implements Converter<Long> {
private static final Long ONE = 1L;
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Long and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class LongNumberConverter implements Converter<Long> {
......
......@@ -12,7 +12,7 @@ import com.alibaba.excel.util.NumberUtils;
/**
* Long and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class LongStringConverter implements Converter<Long> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Short and boolean converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ShortBooleanConverter implements Converter<Short> {
private static final Short ONE = 1;
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Short and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ShortNumberConverter implements Converter<Short> {
......
......@@ -12,7 +12,7 @@ import com.alibaba.excel.util.NumberUtils;
/**
* Short and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ShortStringConverter implements Converter<Short> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* String and boolean converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class StringBooleanConverter implements Converter<String> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* String and error converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class StringErrorConverter implements Converter<String> {
@Override
......
......@@ -13,7 +13,7 @@ import com.alibaba.excel.util.NumberUtils;
/**
* String and number converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class StringNumberConverter implements Converter<String> {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* String and string converter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class StringStringConverter implements Converter<String> {
@Override
......
......@@ -8,7 +8,7 @@ import com.alibaba.excel.util.StringUtils;
/**
* excel internal data type
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public enum CellDataTypeEnum {
/**
......
......@@ -3,7 +3,7 @@ package com.alibaba.excel.enums;
/**
* The types of header
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public enum HeadKindEnum {
/**
......
......@@ -3,7 +3,7 @@ package com.alibaba.excel.enums;
/**
* The types of holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public enum HolderEnum {
/**
......
......@@ -3,7 +3,7 @@ package com.alibaba.excel.enums;
/**
* The types of write last row
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public enum WriteLastRowType {
/**
......
......@@ -3,6 +3,6 @@ package com.alibaba.excel.event;
/**
* Intercepts handle some business logic
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public interface Handler {}
......@@ -2,7 +2,7 @@ package com.alibaba.excel.event;
/**
* Interface to listen for processing results
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public interface Listener {}
......@@ -4,12 +4,12 @@ package com.alibaba.excel.event;
* There are multiple interceptors that execute only one of them when fired once.If you want to control which one to
* execute please use {@link Order}
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public interface NotRepeatExecutor {
/**
* To see if it's the same executor
*
*
* @return
*/
String uniqueValue();
......
......@@ -2,8 +2,8 @@ package com.alibaba.excel.event;
/**
* Implement this interface when sorting
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public interface Order {
/**
......
......@@ -7,8 +7,8 @@ import com.alibaba.excel.context.AnalysisContext;
/**
* Synchronous data reading
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class SyncReadListener extends AnalysisEventListener<Object> {
private List<Object> list = new ArrayList<Object>();
......
......@@ -3,7 +3,7 @@ package com.alibaba.excel.exception;
/**
* Throw the exception when you need to stop
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ExcelAnalysisStopException extends ExcelAnalysisException {
......
......@@ -2,7 +2,7 @@ package com.alibaba.excel.exception;
/**
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ExcelCommonException extends RuntimeException {
......
......@@ -2,8 +2,8 @@ package com.alibaba.excel.exception;
/**
* Data convert exception
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class ExcelDataConvertException extends RuntimeException {
......
......@@ -8,7 +8,7 @@ import com.alibaba.excel.converters.Converter;
/**
* Write/read holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public abstract class AbstractHolder implements ConfigurationHolder {
/**
......
......@@ -8,7 +8,7 @@ import com.alibaba.excel.converters.Converter;
/**
* Basic parameter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public class BasicParameter {
/**
......@@ -31,7 +31,7 @@ public class BasicParameter {
* true if date uses 1904 windowing, or false if using 1900 date windowing.
*
* default is false
*
*
* @return
*/
private Boolean use1904windowing;
......
......@@ -5,7 +5,7 @@ import com.alibaba.excel.enums.CellDataTypeEnum;
/**
* excel internal cell data
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class CellData {
private CellDataTypeEnum type;
......
......@@ -8,7 +8,7 @@ import com.alibaba.excel.converters.Converter;
*
* Get the corresponding holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public interface ConfigurationHolder extends Holder {
......
......@@ -2,8 +2,8 @@ package com.alibaba.excel.metadata;
/**
* Global configuration
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class GlobalConfiguration {
/**
......@@ -14,7 +14,7 @@ public class GlobalConfiguration {
* true if date uses 1904 windowing, or false if using 1900 date windowing.
*
* default is false
*
*
* @return
*/
private Boolean use1904windowing;
......
......@@ -8,7 +8,7 @@ import com.alibaba.excel.metadata.property.ColumnWidthProperty;
/**
* excel head
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public class Head {
/**
......
......@@ -6,7 +6,7 @@ import com.alibaba.excel.enums.HolderEnum;
*
* Get the corresponding holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public interface Holder {
......
......@@ -4,8 +4,8 @@ import com.alibaba.excel.annotation.write.style.ColumnWidth;
/**
* Configuration from annotations
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class ColumnWidthProperty {
private Integer width;
......
......@@ -5,7 +5,7 @@ import com.alibaba.excel.annotation.format.DateTimeFormat;
/**
* Configuration from annotations
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class DateTimeFormatProperty {
private String format;
......
......@@ -7,7 +7,7 @@ import com.alibaba.excel.annotation.format.NumberFormat;
/**
* Configuration from annotations
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class NumberFormatProperty {
private String format;
......
......@@ -5,8 +5,8 @@ import com.alibaba.excel.annotation.write.style.HeadRowHeight;
/**
* Configuration from annotations
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class RowHeightProperty {
private Short height;
......
......@@ -17,7 +17,7 @@ import com.alibaba.excel.support.ExcelTypeEnum;
/**
* Build ExcelWriter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ExcelReaderBuilder {
/**
......
......@@ -14,7 +14,7 @@ import com.alibaba.excel.read.metadata.ReadSheet;
/**
* Build sheet
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ExcelReaderSheetBuilder {
private ExcelReader excelReader;
......
......@@ -6,7 +6,7 @@ import com.alibaba.excel.event.Listener;
/**
* Interface to listen for read results
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public interface ReadListener<T> extends Listener {
/**
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.read.listener.ReadListener;
/**
* Read basic parameter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public class ReadBasicParameter extends BasicParameter {
/**
......
......@@ -11,7 +11,7 @@ import com.alibaba.excel.support.ExcelTypeEnum;
/**
* Workbook
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public class ReadWorkbook extends ReadBasicParameter {
/**
......
......@@ -31,7 +31,7 @@ import com.alibaba.excel.util.StringUtils;
/**
* Read Holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public abstract class AbstractReadHolder extends AbstractHolder implements ReadHolder, ReadListenerRegistryCenter {
/**
......
......@@ -10,7 +10,7 @@ import com.alibaba.excel.read.metadata.property.ExcelReadHeadProperty;
*
* Get the corresponding Holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public interface ReadHolder extends ConfigurationHolder {
/**
......
......@@ -7,7 +7,7 @@ import com.alibaba.excel.metadata.Holder;
/**
* sheet holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ReadRowHolder implements Holder {
/**
......
......@@ -6,7 +6,7 @@ import com.alibaba.excel.read.metadata.ReadSheet;
/**
* sheet holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ReadSheetHolder extends AbstractReadHolder {
/**
......
......@@ -20,7 +20,7 @@ import com.alibaba.excel.support.ExcelTypeEnum;
/**
* Workbook holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ReadWorkbookHolder extends AbstractReadHolder {
private static final Logger LOGGER = LoggerFactory.getLogger(ReadWorkbookHolder.class);
......
......@@ -2,8 +2,8 @@ package com.alibaba.excel.util;
/**
* boolean util
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class BooleanUtils {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.exception.ExcelDataConvertException;
/**
* Date utils
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public class DateUtils {
public static final String DATE_FORMAT_14 = "yyyyMMddHHmmss";
......
......@@ -11,7 +11,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/**
* Number utils
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class NumberUtils {
private NumberUtils() {}
......
......@@ -15,7 +15,7 @@ import com.alibaba.excel.write.metadata.WriteWorkbook;
/**
* Build ExcelBuilder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ExcelWriterBuilder {
/**
......
......@@ -11,8 +11,8 @@ import com.alibaba.excel.write.metadata.WriteSheet;
/**
* Build sheet
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class ExcelWriterSheetBuilder {
private ExcelWriter excelWriter;
......@@ -103,7 +103,7 @@ public class ExcelWriterSheetBuilder {
/**
* Starting from 0
*
*
* @param sheetNo
* @return
*/
......@@ -114,7 +114,7 @@ public class ExcelWriterSheetBuilder {
/**
* sheet name
*
*
* @param sheetName
* @return
*/
......
......@@ -13,7 +13,7 @@ import com.alibaba.excel.write.metadata.WriteTable;
/**
* Build sheet
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class ExcelWriterTableBuilder {
......
......@@ -10,7 +10,7 @@ import com.alibaba.excel.write.metadata.holder.WriteTableHolder;
/**
* intercepts handle cell creation
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public interface CellWriteHandler extends WriteHandler {
......
......@@ -12,7 +12,7 @@ import com.alibaba.excel.write.style.HorizontalCellStyleStrategy;
/**
* Load default handler
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class DefaultWriteHandlerLoader {
......
......@@ -8,7 +8,7 @@ import com.alibaba.excel.write.metadata.holder.WriteTableHolder;
/**
* intercepts handle row creation
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public interface RowWriteHandler extends WriteHandler {
......
......@@ -5,14 +5,14 @@ import com.alibaba.excel.write.metadata.holder.WriteWorkbookHolder;
/**
* intercepts handle sheet creation
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public interface SheetWriteHandler extends WriteHandler {
/**
* called before create the sheet
*
*
* @param writeWorkbookHolder
* @param writeSheetHolder
*/
......@@ -20,7 +20,7 @@ public interface SheetWriteHandler extends WriteHandler {
/**
* called after the sheet is created
*
*
* @param writeWorkbookHolder
* @param writeSheetHolder
*/
......
......@@ -4,8 +4,8 @@ import com.alibaba.excel.write.metadata.holder.WriteWorkbookHolder;
/**
* intercepts handle Workbook creation
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public interface WorkbookWriteHandler extends WriteHandler {
......@@ -16,7 +16,7 @@ public interface WorkbookWriteHandler extends WriteHandler {
/**
* called after the sheet is created
*
*
* @param writeWorkbookHolder
*/
void afterWorkbookCreate(WriteWorkbookHolder writeWorkbookHolder);
......
......@@ -4,7 +4,7 @@ import com.alibaba.excel.event.Handler;
/**
* intercepts handle excel write
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public interface WriteHandler extends Handler {}
......@@ -11,8 +11,8 @@ import com.alibaba.excel.write.metadata.holder.WriteTableHolder;
/**
* Merge strategy
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public abstract class AbstractMergeStrategy implements CellWriteHandler {
@Override
......@@ -32,7 +32,7 @@ public abstract class AbstractMergeStrategy implements CellWriteHandler {
/**
* merge
*
*
* @param sheet
* @param cell
* @param head
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.metadata.Head;
/**
* The regions of the loop merge
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class LoopMergeStrategy extends AbstractMergeStrategy {
private int eachRow;
......
......@@ -8,8 +8,8 @@ import com.alibaba.excel.metadata.Head;
/**
* It only merges once when create cell(firstRowIndex,lastRowIndex)
*
* @author zhuangjiaju
*
* @author Jiaju Zhuang
*/
public class OnceAbsoluteMergeStrategy extends AbstractMergeStrategy {
......
......@@ -9,7 +9,7 @@ import com.alibaba.excel.write.handler.WriteHandler;
/**
* Write basic parameter
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public class WriteBasicParameter extends BasicParameter {
/**
......
......@@ -10,7 +10,7 @@ import com.alibaba.excel.write.handler.WriteHandler;
/**
* Workbook
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public class WriteWorkbook extends WriteBasicParameter {
/**
......
......@@ -42,7 +42,7 @@ import com.alibaba.excel.write.style.row.SimpleRowHeightStyleStrategy;
/**
* Write holder configuration
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public abstract class AbstractWriteHolder extends AbstractHolder implements WriteHolder {
/**
......
......@@ -11,7 +11,7 @@ import com.alibaba.excel.write.property.ExcelWriteHeadProperty;
*
* Get the corresponding Holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
**/
public interface WriteHolder extends ConfigurationHolder {
/**
......
......@@ -12,7 +12,7 @@ import com.alibaba.excel.write.metadata.WriteSheet;
/**
* sheet holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class WriteSheetHolder extends AbstractWriteHolder {
/**
......
......@@ -6,7 +6,7 @@ import com.alibaba.excel.write.metadata.WriteTable;
/**
* sheet holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class WriteTableHolder extends AbstractWriteHolder {
/***
......
......@@ -21,7 +21,7 @@ import com.alibaba.excel.write.metadata.WriteWorkbook;
/**
* Workbook holder
*
* @author zhuangjiaju
* @author Jiaju Zhuang
*/
public class WriteWorkbookHolder extends AbstractWriteHolder {
private static final Logger LOGGER = LoggerFactory.getLogger(WriteWorkbookHolder.class);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册