public class BinaryView extends AbstractView
attributes, baseViewPath, contentType, response
DEFAULT_CHARSET
Constructor and Description |
---|
BinaryView(InputStream inputStream,
long length)
构造器
|
BinaryView(Object data)
构造器
|
Modifier and Type | Method and Description |
---|---|
static BinaryView |
bind(File targetFile) |
protected void |
doRenderView()
视图渲染具体操作
|
BinaryView |
useAttachment(String dispFileName) |
addAttribute, addAttributes, addDateHeader, addHeader, addIntHeader, buildUrl, doProcessPath, doViewInit, getAttribute, getAttributes, getBaseViewPath, getContentType, render, render, setContentType
public BinaryView(Object data)
data
- 数据对象public BinaryView(InputStream inputStream, long length)
inputStream
- 数据输入流length
- 输入流数据长度public static BinaryView bind(File targetFile)
targetFile
- 目标文件protected void doRenderView() throws Exception
AbstractView
doRenderView
in class AbstractView
Exception
- 抛出任何可能异常public BinaryView useAttachment(String dispFileName)
dispFileName
- 显示的文件名称Copyright © 2022. All rights reserved.