public abstract class BaseOutputFormat extends java.lang.Object implements OutputFormatProvider<ResultWorkBook>
| 构造器和说明 |
|---|
BaseOutputFormat() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
flush(java.io.OutputStream out,
ResultWorkBook result)
将结果报表导出为对应文件
|
void |
flushWithParentPath(java.io.OutputStream out,
ResultWorkBook result,
java.lang.String parentPath,
java.util.List<java.lang.String> exportedFiles)
将结果报表导出为对应文件(含文件父目录,用于生成多个结果文件)
|
void |
flushWithPram(java.io.OutputStream out,
ResultWorkBook result,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> param)
将结果报表导出为对应文件(含参数)
|
static BaseOutputFormat |
fromInteger(int value) |
java.lang.String |
getFileSuffix()
文件后缀
|
int |
getFormat()
结果文件标识
|
static void |
registerOutputFormat(BaseOutputFormat outputFormat) |
static void |
removeOutputFormat(int type) |
boolean |
resultFile()
是否是结果文件
|
boolean |
withParam()
是否需要传递参数
|
boolean |
withParentPath()
是否需要文件父目录路径
|
public int getFormat()
OutputFormatProvidergetFormat 在接口中 OutputFormatProvider<ResultWorkBook>public java.lang.String getFileSuffix()
OutputFormatProvidergetFileSuffix 在接口中 OutputFormatProvider<ResultWorkBook>public boolean resultFile()
OutputFormatProviderresultFile 在接口中 OutputFormatProvider<ResultWorkBook>public boolean withParam()
OutputFormatProviderwithParam 在接口中 OutputFormatProvider<ResultWorkBook>public boolean withParentPath()
OutputFormatProviderwithParentPath 在接口中 OutputFormatProvider<ResultWorkBook>public void flush(java.io.OutputStream out,
ResultWorkBook result)
throws java.lang.Exception
OutputFormatProviderflush 在接口中 OutputFormatProvider<ResultWorkBook>java.lang.Exceptionpublic void flushWithPram(java.io.OutputStream out,
ResultWorkBook result,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> param)
throws java.lang.Exception
OutputFormatProviderflushWithPram 在接口中 OutputFormatProvider<ResultWorkBook>java.lang.Exceptionpublic void flushWithParentPath(java.io.OutputStream out,
ResultWorkBook result,
java.lang.String parentPath,
java.util.List<java.lang.String> exportedFiles)
throws java.lang.Exception
OutputFormatProviderflushWithParentPath 在接口中 OutputFormatProvider<ResultWorkBook>java.lang.Exceptionpublic static BaseOutputFormat fromInteger(int value)
public static void registerOutputFormat(BaseOutputFormat outputFormat)
public static void removeOutputFormat(int type)