public class DownloadResult extends ServiceResult
InvalidParameters, NotFound, NotFoundModule, OK| Constructor and Description |
|---|
DownloadResult(int error,
String message) |
DownloadResult(String fileName,
BufferedImage bufferedImage) |
DownloadResult(String fileName,
String filePath) |
| Modifier and Type | Method and Description |
|---|---|
static DownloadResult |
createWithPng(String filePath) |
static DownloadResult |
invalidParameter(String message) |
getError, getException, getMessage, getSuccess, invalidParameters, setError, setMessage, setSuccesspublic DownloadResult(int error,
String message)
public DownloadResult(String fileName, String filePath)
fileName - 文件名filePath - 文件实际的磁盘地址public DownloadResult(String fileName, BufferedImage bufferedImage)
public static DownloadResult createWithPng(String filePath)
public static DownloadResult invalidParameter(String message)
Copyright © 2019. All rights reserved.