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()
OutputFormatProvider
getFormat
在接口中 OutputFormatProvider<ResultWorkBook>
public java.lang.String getFileSuffix()
OutputFormatProvider
getFileSuffix
在接口中 OutputFormatProvider<ResultWorkBook>
public boolean resultFile()
OutputFormatProvider
resultFile
在接口中 OutputFormatProvider<ResultWorkBook>
public boolean withParam()
OutputFormatProvider
withParam
在接口中 OutputFormatProvider<ResultWorkBook>
public boolean withParentPath()
OutputFormatProvider
withParentPath
在接口中 OutputFormatProvider<ResultWorkBook>
public void flush(java.io.OutputStream out, ResultWorkBook result) throws java.lang.Exception
OutputFormatProvider
flush
在接口中 OutputFormatProvider<ResultWorkBook>
java.lang.Exception
public 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
OutputFormatProvider
flushWithPram
在接口中 OutputFormatProvider<ResultWorkBook>
java.lang.Exception
public void flushWithParentPath(java.io.OutputStream out, ResultWorkBook result, java.lang.String parentPath, java.util.List<java.lang.String> exportedFiles) throws java.lang.Exception
OutputFormatProvider
flushWithParentPath
在接口中 OutputFormatProvider<ResultWorkBook>
java.lang.Exception
public static BaseOutputFormat fromInteger(int value)
public static void registerOutputFormat(BaseOutputFormat outputFormat)
public static void removeOutputFormat(int type)