public class RawView extends Object implements View
限定符和类型 | 类和说明 |
---|---|
static class |
RawView.RangeRange |
限定符和类型 | 字段和说明 |
---|---|
protected String |
contentType |
protected static Map<String,String> |
contentTypeMap |
static boolean |
DISABLE_RANGE_DOWNLOAD |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
parseRange(String rangeStr,
List<RawView.RangeRange> rs,
long maxSize) |
void |
render(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
Object obj) |
static void |
writeDownloadRange(DataInputStream in,
OutputStream out,
RawView.RangeRange rangeRange) |
static void |
writeFileRange(File file,
OutputStream out,
RawView.RangeRange rangeRange) |
public static final boolean DISABLE_RANGE_DOWNLOAD
protected String contentType
protected RawView()
public RawView(String contentType)
public void render(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Object obj) throws Throwable
public static final boolean parseRange(String rangeStr, List<RawView.RangeRange> rs, long maxSize)
public static void writeDownloadRange(DataInputStream in, OutputStream out, RawView.RangeRange rangeRange)
public static void writeFileRange(File file, OutputStream out, RawView.RangeRange rangeRange)
Copyright © 2017. All rights reserved.